Skip to main content

All Questions

Tagged with
0 votes
1 answer
21 views

Using Serilog to log at various levels of verbosity across namespaces and classes

I was led to believe that I can set a global minimum level of Information and then in particular namespaces or classes I could bump it up to Debug or even Verbose. This is the code: using Commons; ...
-2 votes
1 answer
125 views

.Net Core Web API Object naming

I'm new to API builds. I'm trying to design an API for datatables.js where I can pull and list data, but I couldn't design a structure suitable for using data tables. {data: [{ other data }]} I need ...
0 votes
1 answer
72 views

How to loop through Inner list of object

I have a need where I need to loop through sublist of each class. public Class A { public int IdA {get;set;} public string Name {get;set;} public List<Class B> Items {get;set;} } public Class ...
0 votes
2 answers
271 views

Profiles for debugging multiple projects in Visual Studio 2019

I'm currently working on a big application that consists of different modules. If I need to debug the authentication flow for instance I have to set as startup 2 projects (an API and a mocked services)...
8 votes
5 answers
4k views

How to add "api" prefix to every end point in an asp .net core web API

I need to automatically add api/ prefix to every end point in my asp .net core web API. How to do that?
0 votes
1 answer
994 views

Difference in hashing algorithms of .Net Identity and .Net Core Identity

I have two projects with .Net Framework and .Net Core, both use same database. The database has user details for login and role management and that's done in .Net Identity and .Net Core Identity ...
74 votes
10 answers
73k views

swagger .net core API ambiguous HTTP method for Action Error

Implementing Swashbuckle/Swagger with .net Core 2 API I am now receiving the 500 error when accessing swagger.json: NotSupportedException: Ambiguous HTTP method for action - EBisAPI.Controllers....
1 vote
1 answer
3k views

Why C# records do not generate parameter less constructor? [duplicate]

I was playing with C# records and it looks like declaration like this: record Point (double X, double Y); Will not generate a parameterless constructor. I like the concise syntax or records and the ...
0 votes
1 answer
69 views

Is there a way to make a Blazor website fully work offline?

We have a Blazor website made, but the client needs it to work offline. I need to load all the data necessary when there is internet connection so that i can later use it in the pages. Not just ...
0 votes
1 answer
30 views

How can I write a HotChocolate middleware that acts after UseFiltering?

I am building a GraphQL interface in an existing dotnet webapi using HotChocolate v13. I want to write a middleware in a field that has UseFiltering(), which as far as I know is a middleware as well. ...
-1 votes
1 answer
72 views

Synchronize large csv file into DB with dotnet core

I want to develop a batch process in .NET Core to synchronize a CSV file containing 3 million lines. The process reads data from the file, updates existing items in the database, and creates new items ...
0 votes
1 answer
32 views

RabbitMQ Client .Net Core Timing Out under load after rabbitmq upgrade. Consumer System.TimeoutException

We have a system that was running RabbitMQ 3.8.5 with RabbitMQ.Client 5.2.0. Part of the way the system uses rabbit is by creating a consumer to wait for a specific command from a different executable ...
9 votes
7 answers
3k views

How to show loading progress while wasm part being loaded (.NET 8, no pre-render)

In Blazor WASM standalone app it is easy, because there is dedicated element for that: <div id="app">Loading...</div> And it gets replaced once the the app is loaded. In Blazor ...
2 votes
2 answers
58 views

How to Refresh IConfiguration

I am using .Net 8 DI to load IConfiguration on startup. It will be loading key-values from azure keyvault. But, after few hours the key-values would change. So how to refresh IConfiguration ...
2 votes
1 answer
90 views

Restrict particular Rest API not to be accessed but deploy the code

I have deployed my .net core code in IIS and NGINX. Is there any way that I can restrict user not to use the particular API and not to deploy code again? Or if i have to deploy again, is there any way ...

15 30 50 per page
1
2 3 4 5
428