共用方式為


HubConnectionBuilderExtensions.ConfigureLogging 方法

定義

新增用於設定所提供 ILoggingBuilder 的委派。 可能會多次呼叫此項。

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

參數

hubConnectionBuilder
IHubConnectionBuilder

要設定的 IHubConnectionBuilder

configureLogging
Action<ILoggingBuilder>

設定 ILoggingBuilder 的委派。

傳回

用於鏈結的相同 IHubConnectionBuilder 執行個體。

適用於