次の方法で共有


HubConnectionBuilderExtensions.WithServerTimeout メソッド

定義

の ServerTimeout を構成します HubConnection

public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithServerTimeout (this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, TimeSpan timeout);
static member WithServerTimeout : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * TimeSpan -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithServerTimeout (hubConnectionBuilder As IHubConnectionBuilder, timeout As TimeSpan) As IHubConnectionBuilder

パラメーター

hubConnectionBuilder
IHubConnectionBuilder

構成する IHubConnectionBuilder

timeout
TimeSpan

の ServerTimeout HubConnection

戻り値

チェーン用の IHubConnectionBuilder の同じインスタンス。

適用対象