ConnectionsDependencyInjectionExtensions.AddConnections Method

Definition

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)

Source:
ConnectionsDependencyInjectionExtensions.cs
Source:
ConnectionsDependencyInjectionExtensions.cs

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