SignalRDependencyInjectionExtensions.AddSignalR SignalRDependencyInjectionExtensions.AddSignalR SignalRDependencyInjectionExtensions.AddSignalR Method

Definition

Overloads

AddSignalR(IServiceCollection) AddSignalR(IServiceCollection) AddSignalR(IServiceCollection)

Adds SignalR services to the specified IServiceCollection.

AddSignalR(IServiceCollection, Action<HubOptions>) AddSignalR(IServiceCollection, Action<HubOptions>) AddSignalR(IServiceCollection, Action<HubOptions>)

Adds SignalR services to the specified IServiceCollection.

AddSignalR(IServiceCollection) AddSignalR(IServiceCollection) AddSignalR(IServiceCollection)

Adds SignalR services to the specified IServiceCollection.

public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddSignalR (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddSignalR : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddSignalR (services As IServiceCollection) As ISignalRServerBuilder

Parameters

Returns

An ISignalRServerBuilder that can be used to further configure the SignalR services.

AddSignalR(IServiceCollection, Action<HubOptions>) AddSignalR(IServiceCollection, Action<HubOptions>) AddSignalR(IServiceCollection, Action<HubOptions>)

Adds SignalR services to the specified IServiceCollection.

public static Microsoft.AspNetCore.SignalR.ISignalRServerBuilder AddSignalR (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.SignalR.HubOptions> configure);
static member AddSignalR : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.SignalR.HubOptions> -> Microsoft.AspNetCore.SignalR.ISignalRServerBuilder
<Extension()>
Public Function AddSignalR (services As IServiceCollection, configure As Action(Of HubOptions)) As ISignalRServerBuilder

Parameters

configure
Action<HubOptions>

An Action<T> to configure the provided HubOptions.

Returns

An ISignalRServerBuilder that can be used to further configure the SignalR services.

Applies to