Category "c++sharp"

Update build reference for test result in Azure DevOps REST API

I have an existing test result and I'd like to update the "Tested build" field for the test result if possible. I've looked at the REST API doc (https://docs.mi

How to avoid login with an empty password field in ASP.NET MVC 5?

I'm working on an ASP.NET MVC 5 project where I have created a customized login and registration page. The application is working fine, but the problem is I am

How to stop host or client in unity netcode?

When I disconnect my server and go to the menu scene, there comes two NetworkManager Objects but a they are implementing the Singleton pattern and it in itself

How could I get a parameter of an action from the ResultExecutingContext when using a Filter

I'm creating a custom result filter that implements IAsyncResultFilter interface. In this filter I need the actual value returned by the Action, but I also need

How can I add persistent data to a mail item so that it is not visible to the user

I have an Outlook add-in that collects data and processes it when the email is sent. Since the email may be saved and sent at a later date the data needs to be

Authorazation with JWT Token - How to get Authorized Automatically

I'm having a problem getting a user to be authorized. I'm making a web Api and in the controller where the login method is, it creates a token (JWT Token / Bear

JetBrains Rider - configure appsettings overrides

I am trying JetBrains Rider for my existing .NET Core project. In the project I have several appsettings.json overrides: appsettings.Development.json - for dev

Check whether string in palindrome : C# code efficiency

I am coming from C background and recently started writing in C# so please don't mind if my question seems somewhat basic. Basically, i want to write a function

How to return HttpStatusCode 404 for incorrect url with FallbackPolicy set in AuthorizationOptions?

In the web application I'm currently working on there is a requirement for all users to be authenticated. This is currently handled by using an AuthorizeFilter.

Is synchronization required when passing a cancel flag with P/Invoke?

I am passing a cancel flag by reference (or by pointer) to a C++ DLL by P/Invoke. The flag will be set at some time in C# code, and the C++ code checks for the

Use Httpclient.GetStreamAsync() is too slow when ipv6 is not disable in C#

Just like C# code, httpClient.GetAsync() use 10 second or more when ipv6 is not disable. But when I disable ipv6 in win10 System, httpClient.GetAsync() just use

I want to change color of mark on axis in WPF chart

I tried to change color of marks on axis (small lines near numbers), but it didn't change them, instead they just disappear. Here is what I've tried: <DVC:Ch

Could not load type Castle.Proxies.IReadinessProxy when running xUnit integration tests in parallel with Autofac

I am having an issue that I've been many days unable to resolve. I use xUnit with a given-then-when abstraction to make tests more readable. I am using a wrappe

Decorating AdditionalText-derived class for "build_metadata.additionalfiles.some_property"

I'm building a source generator that catches csv files marked with the name of the generator. Having <AdditionalFiles Include="File1.csv"> <Gener

AWS KMS manual key rotation and old encrypted data

I'm trying to enable client-side encryption for the data uploaded to AWS S3 by following the guide: https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/k

Renaming layout tab autocad c# .net

the following code is intended to rename the layout tabs in autocad. It renames always the first 2 layout tabs. When I add more tabs before running the program

Is there a more Functional way to aggregate a collection into set of Mongo Filters conjugated by OR?

We have a microservice which enables consumers (indirectly) to query a database, where we have our own logic to limit what consumers can do with the queries. Wh

Http post .csv file Angular 2 and then reading it on the server .NET

I'm trying to send .csv file from my client app (angular 2) to my web api (ASP.NET), and I have done the following: Tried to make FormData from my .csv file t

Hangfire Not Getting Configurations when I try to run Test Case for the method containing hangfire activation .net Core REST Web API

public async Task<IActionResult> SendOrders() { try { RecurringJob.AddOrUpdate("powerfuljob", () => _lab.SendOrders("

How to pass arguments in command line using dotnet?

the command dotnet myapp.dll -- [4, 3, 2] throws the exception System.FormatException: Input string was not in a correct format. I do not know the syntax. How s