AddRedakt(IServiceCollection, IConfiguration, Action<RedaktOptions>)
Adds Redakt core services to the DI container. This method is obsolete; use the overload without the IConfiguration parameter instead.
public static IRedaktBuilder AddRedakt(IServiceCollection services, IConfiguration configuration, Action<RedaktOptions> setupAction)
- Returns:
- IRedaktBuilder
Parameters
services
IServiceCollection
configuration
IConfiguration
setupAction
Action<RedaktOptions>
AddRedakt(IServiceCollection, Action<RedaktOptions>)
Adds Redakt core services to the DI container and returns an IRedaktBuilder instance. This method also registers services for common Redakt modules.
public static IRedaktBuilder AddRedakt(IServiceCollection services, Action<RedaktOptions> setupAction)
- Returns:
- IRedaktBuilder
Parameters
services
IServiceCollection
Services collection
setupAction
Action<RedaktOptions>
A RedaktOptions delegate for setting Redakt system options. Alternatively, these can be set through application settings.
AddRedakt(IServiceCollection, bool, Action<RedaktOptions>)
Adds Redakt core services to the DI container and returns an IRedaktBuilder instance.
public static IRedaktBuilder AddRedakt(IServiceCollection services, bool autoRegisterDefaultModules, Action<RedaktOptions> setupAction)
- Returns:
- IRedaktBuilder
Parameters
services
IServiceCollection
Services collection
autoRegisterDefaultModules
bool
If
setupAction
Action<RedaktOptions>
A RedaktOptions delegate for setting Redakt system options. Alternatively, these can be set through application settings.