Class ServiceCollectionExtensions
Extends Microsoft.Extensions.DependencyInjection.IServiceCollection with extension methods to add dependencies for content routing
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3Syntax
public static class ServiceCollectionExtensions : Object
Methods
AddCmsRouting(IServiceCollection)
Adds the services required by the Episerver platform to an Microsoft.Extensions.DependencyInjection.IServiceCollection. Call this method in your startup configuration method when you want use the Episerver platform in your ASP.NET Core application.
Declaration
public static IServiceCollection AddCmsRouting(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | An Microsoft.Extensions.DependencyInjection.IServiceCollection instance that can be used to configure the CMS further. |