Share via


FakeHostingExtensions.GetFakeRedactionCollector(IHost) Method

Definition

Gets the object reporting all redactions performed.

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

Parameters

host
IHost

An IHost instance.

Returns

The collector that tracks redactions performed on log messages.

Exceptions

No collector exists in the provider.

Applies to