FakeHostingExtensions.GetFakeRedactionCollector(IHost) Método

Definição

Obtém o objeto que relata todas as redações executadas.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Compliance::Testing::FakeRedactionCollector ^ GetFakeRedactionCollector(Microsoft::Extensions::Hosting::IHost ^ host);
public static Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector GetFakeRedactionCollector (this Microsoft.Extensions.Hosting.IHost host);
static member GetFakeRedactionCollector : Microsoft.Extensions.Hosting.IHost -> Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector
<Extension()>
Public Function GetFakeRedactionCollector (host As IHost) As FakeRedactionCollector

Parâmetros

host
IHost

Uma instância IHost.

Retornos

O coletor que rastreia as redações executadas em mensagens de log.

Exceções

Não existe nenhum coletor no provedor.

Aplica-se a