Aracılığıyla paylaş


HubConnectionBuilderExtensions.WithServerTimeout Yöntem

Tanım

için ServerTimeout'ı yapılandırıyor 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

Parametreler

hubConnectionBuilder
IHubConnectionBuilder

IHubConnectionBuilder yapılandırılır.

timeout
TimeSpan

için HubConnectionServerTimeout.

Döndürülenler

Zincirleme için aynı IHubConnectionBuilder örneği.

Şunlara uygulanır