Bagikan melalui


FakeRedactionServiceCollectionExtensions.AddFakeRedaction Metode

Definisi

Overload

AddFakeRedaction(IServiceCollection)

Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.

AddFakeRedaction(IServiceCollection)

Sumber:
FakeRedactionServiceCollectionExtensions.cs
Sumber:
FakeRedactionServiceCollectionExtensions.cs

Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.

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

Parameter

services
IServiceCollection

Kontainer yang digunakan untuk mendaftarkan kelas redaksi palsu.

Mengembalikan

Nilai dari services.

Pengecualian

servicesadalah null.

Berlaku untuk

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

Sumber:
FakeRedactionServiceCollectionExtensions.cs
Sumber:
FakeRedactionServiceCollectionExtensions.cs

Mendaftarkan penyedia redactor palsu yang selalu mengembalikan instans redactor palsu.

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

Parameter

services
IServiceCollection

Kontainer yang digunakan untuk mendaftarkan kelas redaksi palsu.

configure
Action<FakeRedactorOptions>

Mengonfigurasi redactor palsu.

Mengembalikan

Nilai dari services.

Pengecualian

services atau configure> adalah null.

Berlaku untuk