Class AppBuilderExtensions
Provides general extension methods to IAppBuilder.
Inheritance
System.Object
Namespace: Umbraco.Web
Assembly: Umbraco.Web.dll
Syntax
public static class AppBuilderExtensions
Methods
View SourceFinalizeMiddlewareConfiguration(IAppBuilder)
Called at the end of configuring middleware
Declaration
public static void FinalizeMiddlewareConfiguration(this IAppBuilder app)
Parameters
Type | Name | Description |
---|---|---|
IAppBuilder | app | The app builder. |
Remarks
This could be used for something else in the future - maybe to inform Umbraco that middleware is done/ready, but for now this is used to raise the custom event
This is an extension method in case developer entirely replace the UmbracoDefaultOwinStartup class, in which case they will need to ensure they call this extension method in their startup class.
SetUmbracoLoggerFactory(IAppBuilder)
Sets the OWIN logger to use Umbraco's logging system.
Declaration
public static void SetUmbracoLoggerFactory(this IAppBuilder app)
Parameters
Type | Name | Description |
---|---|---|
IAppBuilder | app | The app builder. |
UseSignalR(IAppBuilder, IGlobalSettings)
Configures SignalR.
Declaration
public static IAppBuilder UseSignalR(this IAppBuilder app, IGlobalSettings globalSettings)
Parameters
Type | Name | Description |
---|---|---|
IAppBuilder | app | The app builder. |
IGlobalSettings | globalSettings |
Returns
Type | Description |
---|---|
IAppBuilder |