Ανάγνωση στα Αγγλικά

Κοινή χρήση μέσω


FakeHostingExtensions.GetFakeRedactionCollector(IHost) Method

Definition

Gets the object reporting all redactions performed.

C#
public static Microsoft.Extensions.Compliance.Testing.FakeRedactionCollector GetFakeRedactionCollector (this Microsoft.Extensions.Hosting.IHost host);

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

Προϊόν Εκδόσεις
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)