SignalRDependencyInjectionExtensions.AddSignalR Method
Definition
Overloads
AddSignalR(IServiceCollection) |
Adds SignalR services to the specified IServiceCollection. |
AddSignalR(IServiceCollection, Action<HubOptions>) |
Adds SignalR services to the specified IServiceCollection. |
AddSignalR(IServiceCollection)
Adds SignalR services to the specified IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::ISignalRServerBuilder ^ AddSignalR(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
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
- services
- IServiceCollection
The IServiceCollection to add services to.
Returns
An ISignalRServerBuilder that can be used to further configure the SignalR services.
Applies to
AddSignalR(IServiceCollection, Action<HubOptions>)
Adds SignalR services to the specified IServiceCollection.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::SignalR::ISignalRServerBuilder ^ AddSignalR(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::SignalR::HubOptions ^> ^ configure);
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
- services
- IServiceCollection
The IServiceCollection to add services to.
- configure
- Action<HubOptions>
An Action<T> to configure the provided HubOptions.
Returns
An ISignalRServerBuilder that can be used to further configure the SignalR services.