Questions about Asp.
I am trying to implement ASP.NET Core middleware, and this is the whole code I have in my project: …
c# asp.net-core asp.net-core-middlewareI am trying to use middleware for exception handling in my ASP.Net Core 3.0 Web API project: public class ErrorHandlingMiddleware { …
c# asp.net-core asp.net-core-webapi asp.net-core-middlewareWhen to use Map and MapWhen branch in asp.net core middleware while we are authenticating request. public void Configure(…
asp.net-core asp.net-core-middlewareI've tried to find a solution for this, but all the ones coming up are for previous versions of ASP.…
c# asp.net json asp.net-core-webapi asp.net-core-middlewareI am developing a project that involves multiple Single Page Applications that are hosted on a single .Net Core 1.0 web …
angular asp.net-core-mvc single-page-application asp.net-core-1.0 asp.net-core-middlewareGiven the following middleware: public class RequestDurationMiddleware { private readonly RequestDelegate _next; private readonly ILogger<RequestDurationMiddleware> _logger; public RequestDurationMiddleware(…
c# asp.net-core stopwatch asp.net-core-middlewareI would like to return only standardized error responses from my Web API (Asp.net Core 2.1), but I can't seem …
c# asp.net-core asp.net-core-webapi asp.net-core-middlewareI want to inject a service based on the HTTP header value. So I have 2 classes - DbDataProvider and InMemDataProvider, …
c# asp.net-core dependency-injection asp.net-core-middlewareI need to access ModelState in Asp.net Core 2.1 Middleware, but this is just accessible from Controller. For example I …
c# asp.net-core asp.net-core-middleware .net-core-2.1In ASP.Net Core 2.0, I am trying to return a message formatted as json or xml with a status code. …
asp.net-core asp.net-core-2.0 asp.net-core-middleware request-pipeline