core

Avoid dumping information in a core file

霸气de小男生 提交于 2021-01-28 02:05:25
问题 I want to avoid dumping certain information from my program into a core file in case of any crash. For that, I can use coredump_filter (http://man7.org/linux/man-pages/man5/core.5.html) The man page provides following description The value in the file is a bit mask of memory mapping types (see mmap(2)). If a bit is set in the mask, then memory mappings of the corresponding type are dumped; otherwise they are not dumped. The bits in this file have the following meanings: bit 0 Dump anonymous

IPluralizer, where to find?

旧时模样 提交于 2021-01-27 11:23:29
问题 I have Dal classes in my applications, that use database scaffolding for EF database fist. In order to singuarlize / pluralize the tables the right way, I wrote my own custom pluralizer by implementing IPluralizer found in Microsoft.EntityFrameworkCore.Design namespace. This works fine in my .Net Core 2.2 applications. Since the present release of .Net Core 3.0 I tried to rewrite all my applications. Most of my projects work fine with .Net Core 3.0, but for my Dal projects I'm not able to

QnAmaker sample - The bot's Microsoft App Id or Microsoft App Password is incorrect

﹥>﹥吖頭↗ 提交于 2021-01-05 06:59:08
问题 I downloaded the QnAmaker sample from here and trying to make it working from bot emulator. I gave the correct Microsoft App Id and App Password. I even tried with a newly regenerated password. But getting the same error. Did anyone face this issue? any thoughts. What should I try next to get this resolved? My app settings My ngrok settings Update I removed ngrok settings from emulator settings.Removed MsApp Id and Ms App Password and then started emulator and the bot is responding. But I

Blazor client WASM form validation in component not working

﹥>﹥吖頭↗ 提交于 2020-12-15 05:23:33
问题 Im having trouble getting from validation to work properly in a Blazor WASM client application. Encapsulating an InputText element to a component for compact layout does no longer perform validation that is executed correctly otherwise. using model like public class Customer { [Required] [StringLength(100) public string customerName {get; set;} = ""; } in a form of <EditForm Model=@customer> <DataAnnotationsValidator /> <ValidationSummary /> <div class="form-row"> <div class="form-group mb-0

Blazor client WASM form validation in component not working

这一生的挚爱 提交于 2020-12-15 05:23:27
问题 Im having trouble getting from validation to work properly in a Blazor WASM client application. Encapsulating an InputText element to a component for compact layout does no longer perform validation that is executed correctly otherwise. using model like public class Customer { [Required] [StringLength(100) public string customerName {get; set;} = ""; } in a form of <EditForm Model=@customer> <DataAnnotationsValidator /> <ValidationSummary /> <div class="form-row"> <div class="form-group mb-0

prevent multiple login in asp.net core 2

情到浓时终转凉″ 提交于 2020-11-29 23:46:51
问题 Good day, How do i validate security stamp to prevent multiple login from single user in Asp.Net Core 2 as there's no SecurityStampValidationInterval in IdentityOption . Thanks in advance. 回答1: I have used Microsoft.Extensions.Caching.Memory.IMemoryCache to implement the same. (Stored the usernames in cache) At the time of login (we can do this before validating the password) Step 1: Use Memory Cache as DI to the controller. private IMemoryCache SiteCache = null; public LoginHelper

Outlook Interop in .NET Core 3.0?

孤人 提交于 2020-11-27 05:29:11
问题 I migrated our project from .NET Framework to .NET Core 3.0 (C#, WPF) and now I can not use Microsoft.Office.Interop.Outlook anymore, because it is not compatible with .NET Core 3.0. What I want to archive is opening/sending prefilled Outlook-Mails. Is there an alternative to this interop dll , or maybe a way to use .NET Framework for only this reference? Thanks and best regards! Microsoft.Office.Interop.Outlook, NetOffice.Outlook 回答1: This worked for me: Right click Dependencies and click