Sdílet prostřednictvím


HubConnectionBuilderExtensions.ConfigureLogging Metoda

Definice

Přidá delegáta pro konfiguraci zadaného ILoggingBuilder. To může být volána vícekrát.

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

Nakonfigurujete IHubConnectionBuilder .

configureLogging
Action<ILoggingBuilder>

Delegát, který konfiguruje ILoggingBuilder.

Návraty

Stejná instance IHubConnectionBuilder pro řetězení.

Platí pro