Compartir a través de


HubConnectionBuilderExtensions.ConfigureLogging Método

Definición

Agrega un delegado para configurar el objeto ILoggingBuilder proporcionado. Esto se puede llamar varias veces.

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

Parámetros

hubConnectionBuilder
IHubConnectionBuilder

El objeto IHubConnectionBuilder que se va a configurar.

configureLogging
Action<ILoggingBuilder>

El delegado que configura ILoggingBuilder.

Devoluciones

La misma instancia de IHubConnectionBuilder para el encadenamiento.

Se aplica a