View Source
Class ApplicationBuilderExtensions
Microsoft.AspNetCore.Builder.IApplicationBuilder extensions for Umbraco
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public static class ApplicationBuilderExtensions
Methods
View Source
UmbracoCanBoot(IApplicationBuilder)
Returns true if Umbraco is greater than
Declaration
public static bool UmbracoCanBoot(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
UseUmbraco(IApplicationBuilder)
Configures and use services required for using Umbraco
Declaration
public static IUmbracoApplicationBuilder UseUmbraco(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
View Source
UseUmbracoBackOfficeRewrites(IApplicationBuilder)
Configure a virtual path with IApplicationBuilder.UseRewriter for BackOffice assets to allow cache-busting using the url
/umbraco/backoffice/!cache-busting-id!/assets/index.js => /umbraco/backoffice/assets/index.js.
Declaration
public static IApplicationBuilder UseUmbracoBackOfficeRewrites(this IApplicationBuilder builder)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
builder |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
UseUmbracoCore(IApplicationBuilder)
Enables core Umbraco functionality
Declaration
public static IApplicationBuilder UseUmbracoCore(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
Configure custom umbraco file provider for media
Declaration
public static IApplicationBuilder UseUmbracoMediaFileProvider(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
UseUmbracoPluginsStaticFiles(IApplicationBuilder)
Allow static file access for App_Plugins folders
Declaration
public static IApplicationBuilder UseUmbracoPluginsStaticFiles(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
UseUmbracoRequestLogging(IApplicationBuilder)
Adds request based serilog enrichers to the LogContext for each request
Declaration
public static IApplicationBuilder UseUmbracoRequestLogging(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|
View Source
UseUmbracoRouting(IApplicationBuilder)
Enables middlewares required to run Umbraco
Declaration
public static IApplicationBuilder UseUmbracoRouting(this IApplicationBuilder app)
Parameters
Type |
Name |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
app |
|
Returns
Type |
Description |
Microsoft.AspNetCore.Builder.IApplicationBuilder |
|