RoutingServiceCollectionExtensions.AddRouting Méthode

Définition

Surcharges

AddRouting(IServiceCollection)

Ajoute les services requis pour le routage des demandes.

AddRouting(IServiceCollection, Action<RouteOptions>)

Ajoute les services requis pour le routage des demandes.

AddRouting(IServiceCollection)

Source:
RoutingServiceCollectionExtensions.cs
Source:
RoutingServiceCollectionExtensions.cs
Source:
RoutingServiceCollectionExtensions.cs

Ajoute les services requis pour le routage des demandes.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à

AddRouting(IServiceCollection, Action<RouteOptions>)

Source:
RoutingServiceCollectionExtensions.cs
Source:
RoutingServiceCollectionExtensions.cs
Source:
RoutingServiceCollectionExtensions.cs

Ajoute les services requis pour le routage des demandes.

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

Paramètres

services
IServiceCollection

IServiceCollection auquel ajouter les services.

configureOptions
Action<RouteOptions>

Options de routage avec laquelle configurer le middleware.

Retours

IServiceCollection à utiliser pour chaîner des appels supplémentaires.

S’applique à