Class UmbracoRequestMiddleware
Manages Umbraco request objects and their lifetime
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Middleware
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoRequestMiddleware : IMiddleware
Remarks
This is responsible for initializing the content cache
This is responsible for creating and assigning an
Constructors
View SourceUmbracoRequestMiddleware(ILogger<UmbracoRequestMiddleware>, IUmbracoContextFactory, IRequestCache, IEventAggregator, IProfiler, IHostingEnvironment, UmbracoRequestPaths, BackOfficeWebAssets, IOptionsMonitor<SmidgeOptions>, IRuntimeState, IVariationContextAccessor, IDefaultCultureAccessor, IOptions<UmbracoRequestOptions>)
Initializes a new instance of the Umbraco
Declaration
public UmbracoRequestMiddleware(ILogger<UmbracoRequestMiddleware> logger, IUmbracoContextFactory umbracoContextFactory, IRequestCache requestCache, IEventAggregator eventAggregator, IProfiler profiler, IHostingEnvironment hostingEnvironment, UmbracoRequestPaths umbracoRequestPaths, BackOfficeWebAssets backOfficeWebAssets, IOptionsMonitor<SmidgeOptions> smidgeOptions, IRuntimeState runtimeState, IVariationContextAccessor variationContextAccessor, IDefaultCultureAccessor defaultCultureAccessor, IOptions<UmbracoRequestOptions> umbracoRequestOptions)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
logger | |
IUmbraco |
umbracoContextFactory | |
IRequest |
requestCache | |
IEvent |
eventAggregator | |
IProfiler | profiler | |
IHosting |
hostingEnvironment | |
Umbraco |
umbracoRequestPaths | |
Back |
backOfficeWebAssets | |
Microsoft. |
smidgeOptions | |
IRuntime |
runtimeState | |
IVariation |
variationContextAccessor | |
IDefault |
defaultCultureAccessor | |
Microsoft. |
umbracoRequestOptions |
Methods
View SourceInvokeAsync(HttpContext, RequestDelegate)
Declaration
public async Task InvokeAsync(HttpContext context, RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
context | |
Microsoft. |
next |
Returns
Type | Description |
---|---|
Task |