Κοινή χρήση μέσω


FakeRedactionServiceCollectionExtensions.AddFakeRedaction Method

Definition

Overloads

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)

Source:
FakeRedactionServiceCollectionExtensions.cs

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

Container used to register fake redaction classes.

Returns

The value of services.

Exceptions

services is null.

Applies to

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Source:
FakeRedactionServiceCollectionExtensions.cs

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

Container used to register fake redaction classes.

configure
Action<FakeRedactorOptions>

Configures fake redactor.

Returns

The value of services.

Exceptions

services or configure> are null.

Applies to