AddRedakt(IServiceCollection, IConfiguration, Action<RedaktOptions>)

public static IRedaktBuilder AddRedakt(IServiceCollection services, IConfiguration configuration, Action<RedaktOptions> setupAction)
Returns:
IRedaktBuilder

Parameters

services IServiceCollectionconfiguration IConfigurationsetupAction Action<RedaktOptions>

AddRedakt(IServiceCollection, Action<RedaktOptions>)

Adds the Redakt core services to the DI container with options.

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.

In this article