Udostępnij za pośrednictwem


RoutingServiceCollectionExtensions.AddRouting Metoda

Definicja

Przeciążenia

AddRouting(IServiceCollection)

Dodaje usługi wymagane do routingu żądań.

AddRouting(IServiceCollection, Action<RouteOptions>)

Dodaje usługi wymagane do routingu żądań.

AddRouting(IServiceCollection)

Źródło:
RoutingServiceCollectionExtensions.cs
Źródło:
RoutingServiceCollectionExtensions.cs
Źródło:
RoutingServiceCollectionExtensions.cs

Dodaje usługi wymagane do routingu żądań.

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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy

AddRouting(IServiceCollection, Action<RouteOptions>)

Źródło:
RoutingServiceCollectionExtensions.cs
Źródło:
RoutingServiceCollectionExtensions.cs
Źródło:
RoutingServiceCollectionExtensions.cs

Dodaje usługi wymagane do routingu żądań.

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

Parametry

services
IServiceCollection

Element IServiceCollection do dodawania usług.

configureOptions
Action<RouteOptions>

Opcje routingu do konfigurowania oprogramowania pośredniczącego za pomocą polecenia .

Zwraca

Tak IServiceCollection , aby można było połączyć dodatkowe wywołania.

Dotyczy