I'm working on localizing my WPF application and I have created resource files for Japanese and English languages. In my XAML markup, I've set the 'Text' property of labels, text blocks and various other controls using the syntax 'Text= {x:Static...
The data is not saved within a DI Scoped Service when using Middleware after Identity login. In this example, the data is always false even though it has been set to true (confirmed in the debugger).
Currently, I am consuming a service in postman to consult a specific endpoint, in postman the only thing I do is paste the URL in the request with parameters included, and it returns the content correctly, but when I do the same process from C#, it...
I followed this guide to setup authentication filters in an API I created. It was all pretty easy and went well except now when testing, I get this exception
No authenticationScheme was specified, and there was no DefaultChallengeScheme found. The...
I the code below I have a TSql query which has Or condition in its join. If I want to convert it to Linq in C# how can I rewrite it.
SELECT P.Id AS ProductId FROM generalinv.InventoryTypeProductTypeMapping AS ITM INNER JOIN master.Product AS P ON...
await methodAsync(); var result = methodNonAsync() // ... await methodAsync() puts a item on the queue, so that a thread pool thread (says threadA) can execute this task.
I print the personnel information in my database into the datagrid. I can bring the required fields dynamically with focusedrowchange. As I bring the information, I want to dynamically add the photo kept as a file path in...
my code is currently displaying voltage, temperature, and current readings worth 0 on the arduino serial monitor. whereas last month the same code could display complete values. but now the values displayed are as follows
So I made a code that will detect joystick button input in a TPL where all joysticks' inputs are detected simultaneously. Good thing is that if there's only one joystick connected, it works consistently. If there are two or more connected joysticks,...
I have various config values defined in the database or appsettings. But those cannot be used in DataAnnotation attributes (which require compile-time constants), so everything is duplicated in a Constants class too.
I'm trying to understand what is the best approach to sending the following object to a asp.NET 8 core web application. It is not a web api, just a normal website accepting a complex object input. Here is the object I am referring to:
I am generating a datagrid dynamically and the only problem I have is that it creates an extra row at the end, it is something visual because when I delete by code the last row continues to appear.
I am writing a program that allows users to validate the data going in to a database from Excel spreadsheets. I am using NPOI so I don't have to worry about Excel being installed on the users computer. I want the users to be able to open the...
I'm cognitively struggling with a probably fairly simple problem. Given a certain DateTime, how can I verify that this date (without accounting its year) is in between two other dates?
I am making a webservice that only needs to serve json and it needs to be scalable.
I have gotten the impression that Nginx is a more scalable webserver than IIS 7.5 and that it is extremely simple to manage compared to IIS. Also, Nginx can very...
I am sending a huge file over TCP using C#, and would like to measure the download speed. How can I capture the transfer rate every second? If I use IPv4InterfaceStatistics or a similar method, I capture the device transfer rate instead of capturing...
I currently can input and output audio in real time using NAudio.ASIO, however I want to apply effects to the audio, I understand it isnt built into NAudio so I will have to create my own algorithms. How do I go about creating my own algorithms for...
I'm experiencing an issue with the MongoDB C# driver on the production environment of our app when attempting to insert or update documents in my MongoDB collection. Occasionally (about 1:100000 times), I receive the following error:
I'm using Swashbuckle to enable the use of swagger and swagger-ui in my WebApi project.
In the following image you can see two of my controllers shown in the swagger-ui page. These are named as they are in the C# code, however I was wondering if...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения