SignalRDependencyInjectionExtensions.AddHubOptions<THub> 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.
Adds hub specific options to an ISignalRServerBuilder.
public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddHubOptions<THub> (this Microsoft.AspNetCore.SignalR.ISignalRServerBuilder signalrBuilder, Action<Microsoft.AspNetCore.SignalR.HubOptions<THub>> configure) where THub : Microsoft.AspNetCore.SignalR.Hub;
static member AddHubOptions : Microsoft.AspNetCore.SignalR.ISignalRServerBuilder * Action<Microsoft.AspNetCore.SignalR.HubOptions<'Hub>> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)
<Extension()>
Public Function AddHubOptions(Of THub As Hub) (signalrBuilder As ISignalRServerBuilder, configure As Action(Of HubOptions(Of THub))) As ISignalRServerBuilder
Type Parameters
- THub
The hub type to configure.