Class ServiceCollectionExtensions
Convenient extension methods to Microsoft.Extensions.DependencyInjection.IServiceCollection
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: EPiServer.Framework.Web
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public static class ServiceCollectionExtensions : Object
Methods
AddCmsFrameworkWeb(IServiceCollection)
Adds the services required by the Episerverplatform 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 AddCmsFrameworkWeb(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 application further. |