Show / Hide Table of Contents

Class VersionedRouteAttribute

Indicates a message that can respond to a HTTP request.

Inheritance
System.Object
System.Attribute
VersionedRouteAttribute
Implements
IRouting
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EC.ProductsAndPricing.ServiceContract
Assembly: EC.ProductsAndPricing.ServiceContract.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class VersionedRouteAttribute : Attribute, IRouting

Constructors

View Source

VersionedRouteAttribute(Int32, VersionedRouteHttpVerb, String)

Create a route

Declaration
public VersionedRouteAttribute(int version, VersionedRouteHttpVerb verb, string pathWithoutVersion)
Parameters
Type Name Description
System.Int32 version

The version of the API

VersionedRouteHttpVerb verb

The HTTP verb of the route

System.String pathWithoutVersion

The part of the URL path that is matched after the version part of the path.

Properties

View Source

FullPath

Get the full url path of the route. This includes the Version and the PathWithoutVersion

Declaration
public string FullPath { get; }
Property Type: System.String
Implements
IRouting.FullPath
View Source

PathWithoutVersion

The part of the URL path that is matched after the version part of the path.

Declaration
public string PathWithoutVersion { get; }
Property Type: System.String
View Source

Verb

The HTTP verb handled

Declaration
public VersionedRouteHttpVerb Verb { get; }
Property Type: VersionedRouteHttpVerb
Implements
IRouting.Verb
View Source

Version

The version of the api that the route is for.

Declaration
public int Version { get; }
Property Type: System.Int32
  • View Source
Back to top Copyright © 2017 EC English