Class StartupExtensions
Extension methods initializing Kentico integration with ASP.NET Core.
public static class StartupExtensions
- Inheritance
-
objectStartupExtensions
Methods
AddKentico(IServiceCollection, Action<IFeaturesBuilder>)
Adds required services to start Kentico.
public static IServiceCollection AddKentico(this IServiceCollection services, Action<IFeaturesBuilder> featuresBuilder = null)
Parameters
services
IServiceCollectionThe Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to.
featuresBuilder
Action<IFeaturesBuilder>Action to configure application features.
Returns
- IServiceCollection
The Microsoft.Extensions.DependencyInjection.IServiceCollection so that additional calls can be chained.
UseKentico(IApplicationBuilder)
Initializes and adds Kentico to the request execution pipeline.
public static IApplicationBuilder UseKentico(this IApplicationBuilder applicationBuilder)
Parameters
applicationBuilder
IApplicationBuilderThe Microsoft.AspNetCore.Builder.IApplicationBuilder.
Returns
- IApplicationBuilder
A reference to this instance after the operation has completed.