View Source
Class UmbracoApplicationBuilder
A builder used to enable middleware and endpoints required for Umbraco to operate.
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoApplicationBuilder : IUmbracoApplicationBuilder, IUmbracoEndpointBuilder, IUmbracoApplicationBuilderContext, IUmbracoApplicationBuilderServices
Constructors
View Source
UmbracoApplicationBuilder(IApplicationBuilder)
Declaration
public UmbracoApplicationBuilder(IApplicationBuilder appBuilder)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
appBuilder |
|
Properties
View Source
AppBuilder
Declaration
public IApplicationBuilder AppBuilder { get; }
Property Value
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
ApplicationServices
Declaration
public IServiceProvider ApplicationServices { get; }
Property Value
Type |
Description |
IServiceProvider |
|
View Source
RuntimeState
Declaration
public IRuntimeState RuntimeState { get; }
Property Value
Methods
View Source
RegisterDefaultRequiredMiddleware()
Registers the default required middleware to run Umbraco.
Declaration
public void RegisterDefaultRequiredMiddleware()
View Source
RunPostPipeline()
Declaration
public void RunPostPipeline()
View Source
RunPrePipeline()
Declaration
public void RunPrePipeline()
View Source
UseUmbracoCoreMiddleware()
Declaration
public void UseUmbracoCoreMiddleware()
View Source
WithCustomMiddleware(Action<IUmbracoApplicationBuilderContext>)
EXPERT call to replace the middlewares that Umbraco installs by default with a completely custom pipeline.
Declaration
public IUmbracoEndpointBuilder WithCustomMiddleware(Action<IUmbracoApplicationBuilderContext> configureUmbracoMiddleware)
Parameters
Returns
View Source
WithEndpoints(Action<IUmbracoEndpointBuilderContext>)
Final call during app building to configure endpoints
Declaration
public void WithEndpoints(Action<IUmbracoEndpointBuilderContext> configureUmbraco)
Parameters
View Source
WithMiddleware(Action<IUmbracoApplicationBuilderContext>)
Called to include default middleware to run umbraco.
Declaration
public IUmbracoEndpointBuilder WithMiddleware(Action<IUmbracoApplicationBuilderContext> configureUmbracoMiddleware)
Parameters
Returns