ConnectionsDependencyInjectionExtensions.AddConnections 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.
Overloads
AddConnections(IServiceCollection) |
Adds required services for ASP.NET Core Connection Handlers to the specified IServiceCollection. |
AddConnections(IServiceCollection, Action<ConnectionOptions>) |
Adds required services for ASP.NET Core Connection Handlers to the specified IServiceCollection. |
AddConnections(IServiceCollection)
Adds required services for ASP.NET Core Connection Handlers to the specified IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnections (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddConnections : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnections (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add services to.
Returns
The same instance of the IServiceCollection for chaining.
Applies to
AddConnections(IServiceCollection, Action<ConnectionOptions>)
Adds required services for ASP.NET Core Connection Handlers to the specified IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConnections (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Http.Connections.ConnectionOptions> options);
static member AddConnections : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Http.Connections.ConnectionOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddConnections (services As IServiceCollection, options As Action(Of ConnectionOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection to add services to.
- options
- Action<ConnectionOptions>
A callback to configure ConnectionOptions
Returns
The same instance of the IServiceCollection for chaining.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for