C# 클래스 SwashbuckleODataSample.Versioning.ODataVersionRouteConstraint

Route constraint to allow constraint odata route by query string or headers which is partically used in versioning scenario. For example, you may set query string constraint to v=1 and the route that matching it will be considered as a v1 request and corresponding model will be used to server it
상속: System.Web.OData.Routing.ODataPathRouteConstraint
파일 보기 프로젝트 열기: rbeauchamp/Swashbuckle.OData 1 사용 예제들

공개 메소드들

메소드 설명
Match ( HttpRequestMessage request, IHttpRoute route, string parameterName, object>.IDictionary values, HttpRouteDirection routeDirection ) : bool
ODataVersionRouteConstraint ( string routeName, object queryConstraints, object headerConstraints ) : System.Collections.Generic

메소드 상세

Match() 공개 메소드

public Match ( HttpRequestMessage request, IHttpRoute route, string parameterName, object>.IDictionary values, HttpRouteDirection routeDirection ) : bool
request System.Net.Http.HttpRequestMessage
route IHttpRoute
parameterName string
values object>.IDictionary
routeDirection HttpRouteDirection
리턴 bool

ODataVersionRouteConstraint() 공개 메소드

public ODataVersionRouteConstraint ( string routeName, object queryConstraints, object headerConstraints ) : System.Collections.Generic
routeName string
queryConstraints object
headerConstraints object
리턴 System.Collections.Generic