FakeRedactionServiceCollectionExtensions.AddFakeRedaction Método

Definição

Sobrecargas

AddFakeRedaction(IServiceCollection)

Registra o provedor de refatoração falso que sempre retorna instâncias de refatoração falsas.

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Registra o provedor de refatoração falso que sempre retorna instâncias de refatoração falsas.

AddFakeRedaction(IServiceCollection)

Origem:
FakeRedactionServiceCollectionExtensions.cs

Registra o provedor de refatoração falso que sempre retorna instâncias de refatoração falsas.

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

Parâmetros

services
IServiceCollection

Contêiner usado para registrar classes de redação falsas.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Origem:
FakeRedactionServiceCollectionExtensions.cs

Registra o provedor de refatoração falso que sempre retorna instâncias de refatoração falsas.

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

Parâmetros

services
IServiceCollection

Contêiner usado para registrar classes de redação falsas.

configure
Action<FakeRedactorOptions>

Configura o refatoração falso.

Retornos

O valor de services.

Exceções

services ou configure> são null.

Aplica-se a