FakeHostingExtensions.GetFakeLogCollector(IHost) Yöntem

Tanım

Sahte günlükçüye gönderilen günlük kayıtlarını toplayan nesneyi alır.

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

Parametreler

host
IHost

Bir IHost örnek.

Döndürülenler

Sahte günlükçülere kaydedilen kayıtları izleyen toplayıcı.

Özel durumlar

Sağlayıcıda toplayıcı yok.

Şunlara uygulanır