Category "c++sharp"

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

Can you use C# Kubernetes inClusterConfig for a remote Cluster?

I am having trouble authenticating my C# service for a remote cluster. Trying to use my svc gets Forbidden, so I am hoping to work around with this. I know that

Registry.GetValue goes to another path (C#) [duplicate]

i have the next problem. When i execute a registry.getvalue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server","InstalledInstances"

How to deal with SQL server error: The database cannot be opened because it is version 904. This server supports version 852 and earlier [closed]

While connecting to SQL Server database by attaching to an MDF file, the following error is returned: The database cannot be opened because it

Avoid CS8618 warning when initializing mutable non nullable property with argument validation

I have a question regarding nullable reference type system available since C# 8. Suppose we have a C# domain model class with a mutable reference type property

Owin: Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.HttpListenerRequest'

I got lot of below logs like below, any one knows the root cause about this? Does this related with below code: // Gets the client IP when hosted in IIS, where

Matching elements by their category

Once a category is selected we hit the button and the name of the category "goes into" this variable called "selected". Now, how to put inside of ElementCategor