Category "c++sharp"

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

Make lift go up?

So I found this lift script online, and the answer is probably so obvious and I feel stupid for not seeing this earlier, but right now this script makes the lif

How to throttle events RX?

I am trying to throttle an event being triggered by a slider when the value has been changed I would like to throttle to 1 seconds, its Print every second but

Error XAAAS7001: System.NullReferenceException

I just installed Visual Studio 2019, and I created a Xamarin.Forms project. When I tried to execute it in the android emulator, I get this error : Gravit&eacut

ObservableCollection / Queue

I am making a file transfer program. The user can add as many file transfers (both download/upload), and those will go in FIFO order. The first choice would be

Blazor Cannot provide a value for property 'ScopeFactory' on type 'MyComponent' because the property has no setter

I'm writing Blazor WASM app in .NET 6. The app works as it should in Debug when running from Visual Studio 2022, but when I deploy it as a static site using dot

Microservice architecture Database rollback

I am having a microserice architecture with multiple services, each containing their own Database, and a Gateway which is considered as the business logic. Gat

Is it possible to create a new Gremlin Graph DB and Graph using c# code

I have a Azure Cosmos DB account with Gremlin API. I'm using Gremlin.Net to query the db. var gremlinServer = new GremlinServer(hostname, port, enableSsl: tru

Trying to group __InstanceCreationEvents from WMI Query -

I have a WMI query that notifies me on USB insertions, but I am trying to group the results of this query so that my handler can operate on a batch of these ins