C# Class ALE.Http.Route

Show file Open project: blesh/ALE

Public Properties

Property Type Description
ControllerType System.Type
HandlerInfo System.Reflection.MethodInfo
HandlerParameters ParameterInfo>.Dictionary
Parameters string[]
Path string
PathParser System.Text.RegularExpressions.Regex
PathTester System.Text.RegularExpressions.Regex

Public Methods

Method Description
CreatePathTester ( string path ) : Regex
GetParameters ( string path ) : string[]
Route ( string path, string methodName, Type controllerType ) : System
TryExecute ( IContext context, System.Action next ) : bool

Method Details

CreatePathTester() public static method

public static CreatePathTester ( string path ) : Regex
path string
return System.Text.RegularExpressions.Regex

GetParameters() public static method

public static GetParameters ( string path ) : string[]
path string
return string[]

Route() public method

public Route ( string path, string methodName, Type controllerType ) : System
path string
methodName string
controllerType System.Type
return System

TryExecute() public method

public TryExecute ( IContext context, System.Action next ) : bool
context IContext
next System.Action
return bool

Property Details

ControllerType public property

public Type,System ControllerType
return System.Type

HandlerInfo public property

public MethodInfo,System.Reflection HandlerInfo
return System.Reflection.MethodInfo

HandlerParameters public property

public Dictionary HandlerParameters
return ParameterInfo>.Dictionary

Parameters public property

public string[] Parameters
return string[]

Path public property

public string Path
return string

PathParser public static property

public static Regex,System.Text.RegularExpressions PathParser
return System.Text.RegularExpressions.Regex

PathTester public property

public Regex,System.Text.RegularExpressions PathTester
return System.Text.RegularExpressions.Regex