Compartir a través de


FakeRedactionServiceCollectionExtensions.AddFakeRedaction Método

Definición

Sobrecargas

AddFakeRedaction(IServiceCollection)

Registra el proveedor de redactores falso que siempre devuelve instancias falsas de redactor.

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Registra el proveedor de redactores falso que siempre devuelve instancias falsas de redactor.

AddFakeRedaction(IServiceCollection)

Source:
FakeRedactionServiceCollectionExtensions.cs
Source:
FakeRedactionServiceCollectionExtensions.cs

Registra el proveedor de redactores falso que siempre devuelve instancias falsas de redactor.

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

Contenedor usado para registrar clases de redacción falsas.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Source:
FakeRedactionServiceCollectionExtensions.cs
Source:
FakeRedactionServiceCollectionExtensions.cs

Registra el proveedor de redactores falso que siempre devuelve instancias falsas de redactor.

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

Contenedor usado para registrar clases de redacción falsas.

configure
Action<FakeRedactorOptions>

Configura falsos redactores.

Devoluciones

El valor de services.

Excepciones

services o configure> son null.

Se aplica a