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 UmbracoRequestMiddleware class.
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.Extensions.Logging.ILogger<UmbracoRequestMiddleware> | logger | |
IUmbracoContextFactory | umbracoContextFactory | |
IRequestCache | requestCache | |
IEventAggregator | eventAggregator | |
IProfiler | profiler | |
IHostingEnvironment | hostingEnvironment | |
UmbracoRequestPaths | umbracoRequestPaths | |
BackOfficeWebAssets | backOfficeWebAssets | |
Microsoft.Extensions.Options.IOptionsMonitor<SmidgeOptions> | smidgeOptions | |
IRuntimeState | runtimeState | |
IVariationContextAccessor | variationContextAccessor | |
IDefaultCultureAccessor | defaultCultureAccessor | |
Microsoft.Extensions.Options.IOptions<UmbracoRequestOptions> | umbracoRequestOptions |
Methods
View SourceInvokeAsync(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
Type | Description |
---|---|
Task |