Category "c++sharp"

Entity Framework Core Delete Behavior

So I have these 3 tables where 2 of them(Post(Parent of Comment table as well) and Comment Table) is parent of Reaction Table. Post Table: public class Post {

Blazor WASM application stops responding after handling modal ok eventcallback, which performs a delete request

I implemented a delete button for a table, and when clicking the button a modal is shown to make sure the user really wants to delete that entry, but after the

ConfigureAwait(false) and struct implementation of IAsyncDisposable

I have implemented IAsyncDisposable with an ActionOnAsyncDispose struct as shown below. My understanding is that the compiler will not box it when it is in an a

Synchronize NAudio playback to multiple devices

I am trying to write a program which synchronizes playback of an audio file (MP3) using NAudio. I've wrote a sync method which kicks in every 5 seconds to repos

WebAPI and Azure AD - works fine with obsolete setup, but not when updated to new setup

I have an existing Web API project, which uses Azure AD for authentication. Prior to my joining the organisation, I understand that this was an ASP.Net 3.1 proj

.Net5 version-tolerant assembly loading

I have the following situation in .Net5/C# that I'm struggling to resolve. We have Application (let's call it Platform) U that is able to load plugins, e.g. Plu

BindingRedirects in .net 6

I have been trying to fix version conflicts in my .net6 console project. I fail to find a way like app.config's BindingRedirect or CodeBase whiuch were in .Net

Task.Delay() doesn't work with big TimeSpan (an hour), but works with smaller (10 minutes)

My code is: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Sy

How to call UseEndpoints() and MapGraphQL() for HotChocolate on Azure Function isolated/out-of-process?

I follow this repo https://github.com/chandsalam1108/GraphQLAzFunctionNet5 and https://chillicream.com/docs/hotchocolate/server/endpoints#mapgraphql How do I ca

How can I reproduce Serilog's LogContext behavior?

this is a question of functioning issue, because I didn't understand correctly how you use information sharing. I'm wanting to do something similar to LogContex

Ignite cluster runs within Kubernetes, but applications are outside of it

Is there a way to connect C# Thick Client running in the Windows Machine outside of the Kubernetes with Apache Ignite Cluster nodes are present in the Kubernete

WinForms Form is never garbage collected due to reference from ServiceScope

I have a WinForms Form(s) that is not always garbage collected. The form loads quite a bit of data and when it is not garbage collected, it can cause a signific

How to install/Store NuGet Packages inside the Visual Studio Project's folder?

I have already read similar questions but the provided answers do not resolve my issue. I need to put all the required NuGet packages by a project inside its ow

How to write to the Azure Log Stream

I am trying to get achieve something similar to Console.WriteLine() in Azure Portal. From what I can find, you need to use System.Diagnostics.Trace for that. Bu

ASP.NET Core 6 identityserver (duende) : no DefaultAuthenticateScheme found or no CookieAuthenticationScheme configured on IdentityServerOptions

So here's our setup. we have Angular web app Identity server API (ASP.NET Core 6, duende identity server) Identity server config in Program.cs: builder.Serv

Implement form parts in different classes

I have a main window with two buttons (this is a simplified description). A click on a button opens another form. Both buttons open different forms. I'd like to

Does a WPF app in the new Microsoft Store require signing?

Microsoft is rolling out the new store that accepts MSI/EXE apps. I've been granted access for my new WPF app. I'm new to WPF dev and struggling with what I sho

How to get test coverage percentage on Azure Pipeline?

I have coverlet.collector installed in my project. Then I have added the below into my Yaml file. - task: DotNetCoreCLI@2 inputs: command: test

How to merge two lists using LINQ Suming especifics fields with sublists

Considering I have 2 list (listaProduto1 and listaProduto2), both with same properties, but with different values. I need the result merge both lists, but it mu

Mouse Cursor on tablelayoutpanel

I have winform project that it has tablelayout panel. And i added pictureboxes to all cells. I want the mouse cursor style to cross while on the tablelayoutpane