Class StartupExtensions
Adds DNN MVC Controller Specific startup extensions to simplify the Startup Class.
Inheritance
System.Object
StartupExtensions
Namespace: DotNetNuke.Web.Mvc.Extensions
Assembly: DotNetNuke.Web.Mvc.dll
Syntax
public static class StartupExtensions : object
Methods
| Improve this Doc View SourceAddMvcControllers(IServiceCollection)
Configures all of the DnnController's to be used with the Service Collection for Dependency Injection.
Declaration
public static void AddMvcControllers(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | Service Collection used to registering services in the container. |