Condividi tramite


FakeRedactionServiceCollectionExtensions.AddFakeRedaction Metodo

Definizione

Overload

AddFakeRedaction(IServiceCollection)

Registra il provider redactor falso che restituisce sempre istanze di redactor false.

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Registra il provider redactor falso che restituisce sempre istanze di redactor false.

AddFakeRedaction(IServiceCollection)

Origine:
FakeRedactionServiceCollectionExtensions.cs

Registra il provider redactor falso che restituisce sempre istanze di redactor false.

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

Parametri

services
IServiceCollection

Contenitore usato per registrare classi di ridistribuzione false.

Restituisce

Valore di services.

Eccezioni

services è null.

Si applica a

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Origine:
FakeRedactionServiceCollectionExtensions.cs

Registra il provider redactor falso che restituisce sempre istanze di redactor false.

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

Parametri

services
IServiceCollection

Contenitore usato per registrare classi di ridistribuzione false.

configure
Action<FakeRedactorOptions>

Configura un redactor falso.

Restituisce

Valore di services.

Eccezioni

services oppure configure> sono null.

Si applica a