Language

HubConnectionBuilderExtensions.WithAuthenticationRefresh Method

Definition

Configures automatic authentication token refresh for the HubConnection.

public static Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder WithAuthenticationRefresh(this Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder hubConnectionBuilder, Action<Microsoft.AspNetCore.SignalR.Client.AuthenticationRefreshOptions> configure);
static member WithAuthenticationRefresh : Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder * Action<Microsoft.AspNetCore.SignalR.Client.AuthenticationRefreshOptions> -> Microsoft.AspNetCore.SignalR.Client.IHubConnectionBuilder
<Extension()>
Public Function WithAuthenticationRefresh (hubConnectionBuilder As IHubConnectionBuilder, configure As Action(Of AuthenticationRefreshOptions)) As IHubConnectionBuilder

Parameters

hubConnectionBuilder
IHubConnectionBuilder

The IHubConnectionBuilder to configure.

configure
Action<AuthenticationRefreshOptions>

A delegate that configures the AuthenticationRefreshOptions.

Returns

The same instance of the IHubConnectionBuilder for chaining.

Applies to