Skip to main content

Definition

Assembly: Microsoft.AspNetCore.Routing.dll Namespace: Microsoft.AspNetCore.Routing

Syntax

Microsoft.AspNetCore.Routing.IRouteBuilder

Summary

This type is defined in Microsoft.AspNetCore.Routing.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

MapODataServiceRoute Extension

Extension method from Microsoft.Restier.AspNetCore.Restier_IRouteBuilderExtensions
Maps the specified OData route and the OData route attributes.

Syntax

public static Microsoft.AspNet.OData.Routing.ODataRoute MapODataServiceRoute(Microsoft.AspNetCore.Routing.IRouteBuilder builder, string routeName, string routePrefix, System.Action<Microsoft.OData.IContainerBuilder, string> configureAction)

Parameters

NameTypeDescription
builderMicrosoft.AspNetCore.Routing.IRouteBuilderThe IRouteBuilder to add the route to.
routeNamestringThe name of the route to map.
routePrefixstringThe prefix to add to the OData route’s path template.
configureActionSystem.Action<Microsoft.OData.IContainerBuilder, string>The configuring action to add the services to the root container.

Returns

Type: Microsoft.AspNet.OData.Routing.ODataRoute The added ODataRoute.

MapRestier Extension

Extension method from Microsoft.Restier.AspNetCore.Restier_IRouteBuilderExtensions

Syntax

public static Microsoft.AspNetCore.Routing.IRouteBuilder MapRestier(Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, System.Action<Microsoft.Restier.Core.RestierRouteBuilder> configureRoutesAction)

Parameters

NameTypeDescription
routeBuilderMicrosoft.AspNetCore.Routing.IRouteBuilder-
configureRoutesActionSystem.Action<Microsoft.Restier.Core.RestierRouteBuilder>-

Returns

Type: Microsoft.AspNetCore.Routing.IRouteBuilder