Compartilhar via


HubConnectionBuilderExtensions.ConfigureLogging Método

Definição

Adiciona um delegado para configurar o ILoggingBuilder fornecido. Isso pode ser chamado várias vezes.

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

O IHubConnectionBuilder a ser configurado.

configureLogging
Action<ILoggingBuilder>

O delegado que configura o ILoggingBuilder.

Retornos

A mesma instância do IHubConnectionBuilder para encadeamento.

Aplica-se a