ConnectionsDependencyInjectionExtensions.AddConnections Metoda

Definice

Přetížení

AddConnections(IServiceCollection)

Přidá požadované služby pro obslužné rutiny připojení ASP.NET Core do zadaného IServiceCollection.

AddConnections(IServiceCollection, Action<ConnectionOptions>)

Přidá požadované služby pro obslužné rutiny připojení ASP.NET Core do zadaného IServiceCollection.

AddConnections(IServiceCollection)

Přidá požadované služby pro obslužné rutiny připojení ASP.NET Core do zadaného 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

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

Návraty

IServiceCollection

Stejná instance IServiceCollection řetězení.

Platí pro

AddConnections(IServiceCollection, Action<ConnectionOptions>)

Přidá požadované služby pro obslužné rutiny připojení ASP.NET Core do zadaného 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

Parametry

services
IServiceCollection

Přidání IServiceCollection služeb do.

options
Action<ConnectionOptions>

Zpětné volání ke konfiguraci ConnectionOptions

Návraty

IServiceCollection

Stejná instance IServiceCollection řetězení.

Platí pro