Udostępnij za pośrednictwem


HubConnectionBuilderExtensions.ConfigureLogging Metoda

Definicja

Dodaje delegata do konfigurowania podanego ILoggingBuilderelementu . Może to być wywoływane wiele razy.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ ConfigureLogging(Microsoft::AspNetCore::SignalR::Client::IHubConnectionBuilder ^ hubConnectionBuilder, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configureLogging);
public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder ConfigureLogging (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configureLogging);
static member ConfigureLogging : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function ConfigureLogging (hubConnectionBuilder As IHubConnectionBuilder, configureLogging As Action(Of ILoggingBuilder)) As IHubConnectionBuilder

Parametry

hubConnectionBuilder
IHubConnectionBuilder

Element do skonfigurowania IHubConnectionBuilder .

configureLogging
Action<ILoggingBuilder>

Delegat, który konfiguruje element ILoggingBuilder.

Zwraca

To samo wystąpienie elementu IHubConnectionBuilder do tworzenia łańcucha.

Dotyczy