FakeRedactionServiceCollectionExtensions.AddFakeRedaction 方法

定义

重载

AddFakeRedaction(IServiceCollection)

注册始终返回假重修器实例的假重设函数提供程序。

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

注册始终返回假重修器实例的假重设函数提供程序。

AddFakeRedaction(IServiceCollection)

Source:
FakeRedactionServiceCollectionExtensions.cs

注册始终返回假重修器实例的假重设函数提供程序。

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

参数

services
IServiceCollection

用于注册假编修类的容器。

返回

services 的值。

例外

servicesnull

适用于

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Source:
FakeRedactionServiceCollectionExtensions.cs

注册始终返回假重修器实例的假重设函数提供程序。

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

参数

services
IServiceCollection

用于注册假编修类的容器。

configure
Action<FakeRedactorOptions>

配置假重修器。

返回

services 的值。

例外

servicesconfigure> 为 null

适用于