C# Class ALE.Http.Route

Datei anzeigen 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_oe property

public Type,System ControllerType
return System.Type

HandlerInfo public_oe property

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

HandlerParameters public_oe property

public Dictionary HandlerParameters
return ParameterInfo>.Dictionary

Parameters public_oe property

public string[] Parameters
return string[]

Path public_oe property

public string Path
return string

PathParser public_oe static_oe property

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

PathTester public_oe property

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