Category "c++sharp"

How to search for the name of the UserProperty in Outlook.MailItems, not their value

BACKGROUND: Currently I am searching Outlook.MailItems where their UserProperty (here, "IsProcessed") is equal to its propertyValue (here, true or false). st

SSL/TSLsupport for grpc in c#

I tried to implement a gRPC using SSL/TLS, I read the documentation about how to implement SSL/TLS, but this don´t works, I found a stackoverflow page TLS

How to add health checks to .Net core Background service

I am having a .net core 2.1 Background service application which is subscribed to a queue in Microsoft Azure Service bus. It has some logic and it calls to an a

POST https://dc.services.visualstudio.com/v2/track 439

i have error which kill my application - app is running, but - thus, the data in the grids are not displayed - i think error in console browserLink:2843

How to remove Visual Studio 'IDE' warnings for a Unity project?

I've been trying to get rid off IDE warnings for a Unity project: While csc.rsp works for CS warnings, it doesn't for IDE warnings: -nowarn:CS0649,IDE0063,I

C# - VS Code - launch:program ... does not exist

I am trying to debug a simple "Hello world" application in VS Code, however, when I press Ctrl + F5, it gives me the following error: If I manually change th

Awaiting localhost to reload in ASP.NET Core

I have an ASP.NET Core server, which is using SignalR to generate HTML pages dynamically at runtime through JavaScript. After i shut my application down, in the

SharpGL Low Resolution Textures

I am loading textures in using the following code: var texture = new SharpGL.SceneGraph.Assets.Texture(); texture.Create(gl, filename); But when I render them

Scan with WIA. Set the properties and the drawer ADF

I need to use a scanner's ADF. I haven't found anything that works for me. I have tried this code (found on the net) but none of the settings are taking effect.

Inline AutoSuggestBox like windows 11 search box

In Windows 11 OS, search textbox displays as below Here the auto append text has a different foreground. How to do this? while typing in AutoSuggestBox, I need

SignedCms.CheckSignature with SAP certificate is failing

This is a follow-up of this question. I am writing an external server which gets called by a SAP-Server. The SAP-Server signs the URL with a certificate before

Hexadecimal Loops in C#

My goal was to get a 3DES password and for that im missing the last 6 digits. for (int i = 0; i <= 16777215; i++) { string hexValue = i.ToString("X").Pa

How to add bearer token authentication to typed HttpClient in Asp.Net Core 6

I'm trying to setup a web api using ASP.Net Core 6 so that users can hit my end points and then I do some work in D365 behind the scenes using a privileged acco

Unable to Deserialize HttpResponseMessage to Model Object

Code for Getting the Response: public async Task<List<RepositoryListResponseItem>> MakeGitRequestAsync<T>(string url) { List<Repositor

Apache Pulsar send message seems slow

I'm making some tests with Apache Kafka, RabbitMQ and Apache Pulsar, using C# client libraries. Tonight I started to do some tests with producer of messages for

Record type with multiple constructors

How do I create multiple constructors for a record type in C#? I created a record type like this: public record Person(int Id, string FirstName, string LastName

How to serialize list or array using MetaLama in ToString TypeAspect

I am trying to write an TypeAspect using MetaLama framwerok that will serialize an object to it's string representation when it has a nested list type. Here is

MAX and MIN on string array in c#

I have started to learn Linq recently. I came across a few inbuild methods like Min() and Max(). The working of these two methods is fine with int[]. But when i

Xamarin HttpClient request on Local network gets NameResolutionFailure error

Need to make a request with a local network server. If machine name is known, but not IP address. string serverAddress = "mylocalserver"; System.Net.ServicePoi

.NET Core Pomelo Mysql connection

I'm trying to run a Entity Framework command in dotnet cli and I'm getting the following error: Access denied for user ''@'fe80::45b2:4add:f2de:ebcf%6' (using