Category "c++sharp"

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

Extreme UDP-Package-Loss in HoloLens2 -UWP-Application

In my HoloLens2 application sometimes the UDP-Package-receive rate drops instantly from 40 packages per second to 0-2 packages per second and stays there (size

find the smallest integer N, such that

I am stuck for quite a while now on the following task: find the smallest integer N, such that A^N < N! I want to do this in C# and A can be so big that ther

.NET Core 3.1 Writing file to network drive

I am trying to get user to upload a document from the web interface and have it stored on the network share *\dfsms\shared\MyProject* , it also saves the entry

C# array issue due to indexing of int

I am fairly new to this and trying to learn. I am struggling trying to make a loop to find the max value in an array. I am not sure what I am doing wrong. I hav