RedaktCoreServiceCollectionExtensions Class

RedaktCoreServiceCollectionExtensions Class

Contains extension methods for adding the Redakt core services to the DI container.

public static class RedaktCoreServiceCollectionExtensions

Inheritance  Object RedaktCoreServiceCollectionExtensions

Methods

Name Description
AddDataStoreViewProvider(IRedaktBuilder) Adds the DataStoreViewProvider to the DI container.
AddPhysicalFileViewProvider(IRedaktBuilder) Adds the default PhysicalFileViewProvider to the DI container.
AddPhysicalFileViewProvider(IRedaktBuilder, string) Adds the default PhysicalFileViewProvider to the DI container with a specific content root path.
AddRedaktCore(IServiceCollection, IConfiguration, Action<IRedaktBuilder>) Adds the Redakt core services to the DI container.
AddRedaktCore(IServiceCollection, IConfiguration, Action<IRedaktBuilder>, Action<RedaktOptions>) Adds the Redakt core services to the DI container with options.
AddRedaktService<TService, TImplementation>(IServiceCollection)