HubConnectionBuilderExtensions.WithAuthenticationRefresh Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.