Class ZeroRedactExtensions
- Namespace
- ZeroRedact
- Assembly
- ZeroRedact.dll
Extension methods for IServiceCollection to register IRedactor with the Redactor implementation.
public static class ZeroRedactExtensions
- Inheritance
-
ZeroRedactExtensions
- Inherited Members
Methods
AddZeroRedact(IServiceCollection)
public static IServiceCollection AddZeroRedact(this IServiceCollection services)
Parameters
services
IServiceCollectionThe service collection
Returns
AddZeroRedact(IServiceCollection, RedactorOptions)
Registers an instance of IRedactor with the Redactor implementation with RedactorOptions.
public static IServiceCollection AddZeroRedact(this IServiceCollection services, RedactorOptions options)
Parameters
services
IServiceCollectionThe service collection
options
RedactorOptionsThe RedactorOptions to configure the Redactor