RoutingServiceCollectionExtensions.AddRouting Metodo

Definizione

Overload

AddRouting(IServiceCollection)

Aggiunge i servizi necessari per le richieste di routing.

AddRouting(IServiceCollection, Action<RouteOptions>)

Aggiunge i servizi necessari per le richieste di routing.

AddRouting(IServiceCollection)

Origine:
RoutingServiceCollectionExtensions.cs
Origine:
RoutingServiceCollectionExtensions.cs
Origine:
RoutingServiceCollectionExtensions.cs

Aggiunge i servizi necessari per le richieste di routing.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRouting (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddRouting : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRouting (services As IServiceCollection) As IServiceCollection

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a

AddRouting(IServiceCollection, Action<RouteOptions>)

Origine:
RoutingServiceCollectionExtensions.cs
Origine:
RoutingServiceCollectionExtensions.cs
Origine:
RoutingServiceCollectionExtensions.cs

Aggiunge i servizi necessari per le richieste di routing.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddRouting (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Routing.RouteOptions> configureOptions);
static member AddRouting : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddRouting (services As IServiceCollection, configureOptions As Action(Of RouteOptions)) As IServiceCollection

Parametri

services
IServiceCollection

Oggetto IServiceCollection in cui aggiungere i servizi.

configureOptions
Action<RouteOptions>

Opzioni di routing con cui configurare il middleware.

Restituisce

Oggetto IServiceCollection che consente il concatenamento di chiamate aggiuntive.

Si applica a