FakeRedactionServiceCollectionExtensions.AddFakeRedaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddFakeRedaction(IServiceCollection) |
Registers the fake redactor provider that always returns fake redactor instances. |
| AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>) |
Registers the fake redactor provider that always returns fake redactor instances. |
AddFakeRedaction(IServiceCollection)
Registers the fake redactor provider that always returns fake redactor instances.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The container used to register fake redaction classes.
Returns
The value of services.
Exceptions
services is null.
Applies to
AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)
Registers the fake redactor provider that always returns fake redactor instances.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddFakeRedaction(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Compliance::Testing::FakeRedactorOptions ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddFakeRedaction(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> configure);
static member AddFakeRedaction : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Compliance.Testing.FakeRedactorOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddFakeRedaction (services As IServiceCollection, configure As Action(Of FakeRedactorOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The container used to register fake redaction classes.
- configure
- Action<FakeRedactorOptions>
Configures fake redactor.
Returns
The value of services.
Exceptions
services or configure is null.