Share via


HubConnectionBuilderExtensions.ConfigureLogging Method

Definition

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

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

Parameters

hubConnectionBuilder
IHubConnectionBuilder

The IHubConnectionBuilder to configure.

configureLogging
Action<ILoggingBuilder>

The delegate that configures the ILoggingBuilder.

Returns

The same instance of the IHubConnectionBuilder for chaining.

Applies to