다음을 통해 공유


RoutingServiceCollectionExtensions.AddRouting 메서드

정의

오버로드

AddRouting(IServiceCollection)

라우팅 요청에 필요한 서비스를 추가합니다.

AddRouting(IServiceCollection, Action<RouteOptions>)

라우팅 요청에 필요한 서비스를 추가합니다.

AddRouting(IServiceCollection)

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

라우팅 요청에 필요한 서비스를 추가합니다.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상

AddRouting(IServiceCollection, Action<RouteOptions>)

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

라우팅 요청에 필요한 서비스를 추가합니다.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

configureOptions
Action<RouteOptions>

미들웨어를 구성하는 라우팅 옵션입니다.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.

적용 대상