Category "c++sharp"

M2Mqtt in C# is not connected, doesn't give data

I have a project creating a websocket client side (Subscriber) to a MQTT publisher. I am quite new to C# and MQTT protocol. I follow some youtube video to make

C# and MongoDB - Returning values from an object

I'm hoping someone can help: I have MongoDB collection for a User which has an Array called Reports which holds objects with IDs. I can retrieve the IDs but I'm

How to register SNS topic to bounce (or complaint) email notifications with AWS CDK C#?

I have SES 'verified identity' email, that sends emails. Now using CDK I'm creating SNS topic and Lambda to handle bounce and complaint emails sent by that veri

dotNet Core 5 API Service adds objects to list but result has multiple copies of the last item

dotNet Core 5 C# Web API project, Service class adds objects (based on a viewmodel) to a list. Debugging shows all data correct as the object is built and adde

ASP.NET EF Core Database update on Mac using docker image Azure Sql Edge

I am new to mac and got Azure Sql Edge running using docker image. This is the command I ran to run the image. docker run -d --name SQLServerImg -e ACCEPT_EULA=

How to create a void method that outputs an integer and have the method divide the data passed to it by 2?

I'm really brand new at this and still learning C#. I've had a hard time trying to look for a good example to the assignment I'm working on. So you can see exac

Why is SetActive not working in my script?

A new problem has just appeared in my code. In OnTriggerEnter i'm testing if the player collides with the obstacle. When I tell the script to display a message

multidimensional list remove duplicates only for that level

I am trying to build a treeview of crates from a program called Serato, how they build their crates in their program is by the files in a folder, however the is

Why is SetActive not working in my script?

A new problem has just appeared in my code. In OnTriggerEnter i'm testing if the player collides with the obstacle. When I tell the script to display a message

multidimensional list remove duplicates only for that level

I am trying to build a treeview of crates from a program called Serato, how they build their crates in their program is by the files in a folder, however the is

C# Send a toast notification from a Windows Service : UnauthorizedAccessException

I try to send a Toast Notification in a Windows Service, but I have this exeption : System.UnauthorizedAccessException: Accès refusé. (Exception

Render CSV example for swashbuckle

I have an API that can return an csv or json, deppending on the Accept header mimetype. I've decorated the method with [Produces("application/json","text/csv")]

In XML documenttion, how do I reference another class that has the same name in the same namespace?

I have several C# packages that are closely related to each other. Each one of these has its own IServiceCollectionsExtensions static class living in the Micros

Calling mutliple bool routines in ASP.NET and C#

I have mutliple bool user defined routines that calls a stored procedure from SQL server. The stored procedures are working fine but the problem is I want to hi

NavMeshAgent in unity doesn't bake (Doesn't turn blue)

I made a few surfaces and a few agents, then when I wanted to make a couple more the old navs and new ones just stopped working it says it only works if you pla

Read raw file contents in private repo in C#

I want to read the contents of a private GitHub repo file and declare the value in a variable in a C# Visual Studio .NET Application. What's easiest the way of

Minimal API Registering Dependencies

I am trying to register dependencies but one thing that is strange is when using specific handlers. For example, take a simple scenario like: using Microsoft.As

Attempting to 'permanetly' save two user inputs into two seperate arrays, and display the array data in a listbox on a different form

Apologies I am a newbie, ill try to explain as best as I can. Im creating a game for a university assignment. My game is a maths game that asks the user maths q

how do we interpret => something => something2 => something3 in C#

I am reading a book called functional programming in C# by Enrico Buonanno public static Validator<T> FailFast<T> (IEnumerable<Validator<T&

How to simulate api calls in C# using php file

I have an online reports viewer application that stores patients records as follows: Web application view: I have created a C# application that is meant to cap