Partager via


HubConnectionBuilderExtensions.ConfigureLogging Méthode

Définition

Ajoute un délégué pour configurer le ILoggingBuilder fourni. Peut être appelée plusieurs fois.

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

Paramètres

hubConnectionBuilder
IHubConnectionBuilder

IHubConnectionBuilder à configurer.

configureLogging
Action<ILoggingBuilder>

Délégué qui configure le ILoggingBuilder.

Retours

La même instance du IHubConnectionBuilder pour le chaînage.

S’applique à