SaaS CMS has officially launched! Learn more now.

Class ServiceCollectionExtensions

Extension methods for Microsoft.Extensions.DependencyInjection.IServiceCollection

Inheritance
System.Object
ServiceCollectionExtensions
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public static class ServiceCollectionExtensions : Object

Methods

AddCmsCoreWeb(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 AddCmsCoreWeb(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.