ConnectionsDependencyInjectionExtensions.AddConnections ConnectionsDependencyInjectionExtensions.AddConnections ConnectionsDependencyInjectionExtensions.AddConnections ConnectionsDependencyInjectionExtensions.AddConnections Method

Definition

Overloads

AddConnections(IServiceCollection) AddConnections(IServiceCollection) AddConnections(IServiceCollection) AddConnections(IServiceCollection)

Adds required services for ASP.NET Core Connection Handlers to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>)

Adds required services for ASP.NET Core Connection Handlers to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

AddConnections(IServiceCollection) AddConnections(IServiceCollection) AddConnections(IServiceCollection) AddConnections(IServiceCollection)

Adds required services for ASP.NET Core Connection Handlers to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddConnections(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
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
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The same instance of the Microsoft.Extensions.DependencyInjection.IServiceCollection for chaining.

AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>) AddConnections(IServiceCollection, Action<ConnectionOptions>)

Adds required services for ASP.NET Core Connection Handlers to the specified Microsoft.Extensions.DependencyInjection.IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddConnections(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::AspNetCore::Http::Connections::ConnectionOptions ^> ^ options);
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
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

options
Action<ConnectionOptions>

A callback to configure ConnectionOptions

Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The same instance of the Microsoft.Extensions.DependencyInjection.IServiceCollection for chaining.

Applies to