FakeRedactionServiceCollectionExtensions.AddFakeRedaction Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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)
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>)
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
.