Compartir a través de


RoutingServiceCollectionExtensions.AddRouting Método

Definición

Sobrecargas

AddRouting(IServiceCollection)

Agrega servicios necesarios para las solicitudes de enrutamiento.

AddRouting(IServiceCollection, Action<RouteOptions>)

Agrega servicios necesarios para las solicitudes de enrutamiento.

AddRouting(IServiceCollection)

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

Agrega servicios necesarios para las solicitudes de enrutamiento.

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

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a

AddRouting(IServiceCollection, Action<RouteOptions>)

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

Agrega servicios necesarios para las solicitudes de enrutamiento.

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

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

configureOptions
Action<RouteOptions>

Las opciones de enrutamiento con las que configurar el middleware.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a