Class UmbracoMvcConfigureOptions
Options for globally configuring MVC for Umbraco
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Mvc
Assembly: Umbraco.Web.Common.dll
Syntax
public class UmbracoMvcConfigureOptions : IConfigureOptions<MvcOptions>
Remarks
We generally don't want to change the global MVC settings since we want to be unobtrusive as possible but some global mods are needed - so long as they don't interfere with normal user usages of MVC.
Constructors
View SourceUmbracoMvcConfigureOptions()
Declaration
public UmbracoMvcConfigureOptions()
UmbracoMvcConfigureOptions(IOptions<GlobalSettings>)
Declaration
public UmbracoMvcConfigureOptions(IOptions<GlobalSettings> globalSettings)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings |
Methods
View SourceConfigure(MvcOptions)
Declaration
public void Configure(MvcOptions options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.MvcOptions | options |