View Source
Class UmbracoRequestLoggingMiddleware
Adds request based serilog enrichers to the LogContext for each request
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoRequestLoggingMiddleware : IMiddleware
Constructors
View Source
UmbracoRequestLoggingMiddleware(HttpSessionIdEnricher, HttpRequestNumberEnricher, HttpRequestIdEnricher)
Declaration
public UmbracoRequestLoggingMiddleware(HttpSessionIdEnricher sessionIdEnricher, HttpRequestNumberEnricher requestNumberEnricher, HttpRequestIdEnricher requestIdEnricher)
Parameters
Type |
Name |
Description |
HttpSessionIdEnricher |
sessionIdEnricher |
|
HttpRequestNumberEnricher |
requestNumberEnricher |
|
HttpRequestIdEnricher |
requestIdEnricher |
|
Methods
View Source
InvokeAsync(HttpContext, RequestDelegate)
Declaration
public async Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Http.HttpContext |
context |
|
Microsoft.AspNetCore.Http.RequestDelegate |
next |
|
Returns