C# Class Manos.ManosModule

A pre-packaged set of routes/actions that can be registered in the constructor of a ManoApp-derived class.
Inheritance: IManosModule
Exibir arquivo Open project: toptensoftware/manos Class Usage Examples

Public Methods

Method Description
AddPipe ( Manos.ManosPipe pipe ) : void
AddTimeout ( System.TimeSpan timespan, IRepeatBehavior repeat, TimeoutCallback callback ) : Timeout
AddTimeout ( System.TimeSpan timespan, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : Timeout
AddTimeout ( System.TimeSpan timespan, TimeoutCallback callback ) : Timeout
AddTimeout ( System.TimeSpan timespan, object data, TimeoutCallback callback ) : Timeout
Delete ( IManosModule module ) : RouteHandler
Delete ( ManosAction action ) : RouteHandler
Delete ( string pattern, IManosModule module ) : RouteHandler
Delete ( string pattern, ManosAction action ) : RouteHandler
Delete ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
Get ( IManosModule module ) : RouteHandler
Get ( ManosAction action ) : RouteHandler
Get ( string pattern, IManosModule module ) : RouteHandler
Get ( string pattern, ManosAction action ) : RouteHandler
Get ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
Get404Response ( ) : string
Get500Response ( ) : string
Head ( IManosModule module ) : RouteHandler
Head ( ManosAction action ) : RouteHandler
Head ( string pattern, IManosModule module ) : RouteHandler
Head ( string pattern, ManosAction action ) : RouteHandler
Head ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
ManosModule ( ) : System
Options ( IManosModule module ) : RouteHandler
Options ( ManosAction action ) : RouteHandler
Options ( string pattern, IManosModule module ) : RouteHandler
Options ( string pattern, ManosAction action ) : RouteHandler
Options ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
Post ( IManosModule module ) : RouteHandler
Post ( ManosAction action ) : RouteHandler
Post ( string pattern, IManosModule module ) : RouteHandler
Post ( string pattern, ManosAction action ) : RouteHandler
Post ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
Put ( IManosModule module ) : RouteHandler
Put ( ManosAction action ) : RouteHandler
Put ( string pattern, IManosModule module ) : RouteHandler
Put ( string pattern, ManosAction action ) : RouteHandler
Put ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
RenderTemplate ( Manos.ManosContext ctx, string template, object data ) : void
Route ( IManosModule module ) : RouteHandler
Route ( ManosAction action ) : RouteHandler
Route ( string pattern, IManosModule module ) : RouteHandler
Route ( string pattern, ManosAction action ) : RouteHandler
Route ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
Route ( string pattern, MatchType matchType, ManosAction action, HttpMethod methods ) : RouteHandler
StartInternal ( ) : void
Trace ( IManosModule module ) : RouteHandler
Trace ( ManosAction action ) : RouteHandler
Trace ( string pattern, IManosModule module ) : RouteHandler
Trace ( string pattern, ManosAction action ) : RouteHandler
Trace ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler

Private Methods

Method Description
ActionForMethod ( MethodInfo info ) : ManosAction
AddActionHandler ( RouteHandler routes, MethodInfo info ) : void
AddDefaultHandlerForAction ( RouteHandler routes, MethodInfo info ) : void
AddDefaultHandlerForParameterizedAction ( RouteHandler routes, MethodInfo info ) : void
AddHandlerForAction ( RouteHandler routes, Manos.HttpMethodAttribute att, MethodInfo info ) : void
AddHandlerForParameterizedAction ( RouteHandler routes, Manos.HttpMethodAttribute att, MethodInfo info ) : void
AddImplicitModule ( PropertyInfo prop ) : void
AddImplicitRouteHandlerForModule ( IManosModule module, IMatchOperation ops, HttpMethod methods ) : RouteHandler
AddImplicitRouteHandlerForModule ( IManosModule module, string patterns, HttpMethod methods ) : RouteHandler
AddImplicitRouteHandlerForTarget ( IManosTarget target, IMatchOperation ops, HttpMethod methods ) : RouteHandler
AddImplicitRouteHandlerForTarget ( IManosTarget target, string patterns, HttpMethod methods, MatchType matchType ) : RouteHandler
AddImplicitRoutes ( ) : void
AddParameterizedActionHandler ( RouteHandler routes, MethodInfo info ) : void
AddRouteHandler ( IManosModule module, string patterns, HttpMethod methods ) : RouteHandler
AddRouteHandler ( IManosTarget target, IMatchOperation matchOperations, HttpMethod methods ) : RouteHandler
AddRouteHandler ( IManosTarget target, string patterns, HttpMethod methods ) : RouteHandler
AddRouteHandler ( ManosAction action, IMatchOperation matchOperations, HttpMethod methods ) : RouteHandler
AddRouteHandler ( ManosAction action, string patterns, HttpMethod methods ) : RouteHandler
IsActionSignature ( MethodInfo method, ParameterInfo parameters ) : bool
IsIgnored ( MemberInfo info ) : bool
IsParameterizedActionSignature ( MethodInfo method, ParameterInfo parameters ) : bool
OpsForPatterns ( string patterns, MatchType type ) : IMatchOperation[]
SimpleOpsForPatterns ( string patterns ) : IMatchOperation[]
StringOpsForPatterns ( string patterns ) : IMatchOperation[]

Method Details

AddPipe() public static method

public static AddPipe ( Manos.ManosPipe pipe ) : void
pipe Manos.ManosPipe
return void

AddTimeout() public static method

public static AddTimeout ( System.TimeSpan timespan, IRepeatBehavior repeat, TimeoutCallback callback ) : Timeout
timespan System.TimeSpan
repeat IRepeatBehavior
callback TimeoutCallback
return Timeout

AddTimeout() public static method

public static AddTimeout ( System.TimeSpan timespan, IRepeatBehavior repeat, object data, TimeoutCallback callback ) : Timeout
timespan System.TimeSpan
repeat IRepeatBehavior
data object
callback TimeoutCallback
return Timeout

AddTimeout() public static method

public static AddTimeout ( System.TimeSpan timespan, TimeoutCallback callback ) : Timeout
timespan System.TimeSpan
callback TimeoutCallback
return Timeout

AddTimeout() public static method

public static AddTimeout ( System.TimeSpan timespan, object data, TimeoutCallback callback ) : Timeout
timespan System.TimeSpan
data object
callback TimeoutCallback
return Timeout

Delete() public method

public Delete ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Delete() public method

public Delete ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Delete() public method

public Delete ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Delete() public method

public Delete ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Delete() public method

public Delete ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

Get() public method

public Get ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Get() public method

public Get ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Get() public method

public Get ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Get() public method

public Get ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Get() public method

public Get ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

Get404Response() public method

public Get404Response ( ) : string
return string

Get500Response() public method

public Get500Response ( ) : string
return string

Head() public method

public Head ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Head() public method

public Head ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Head() public method

public Head ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Head() public method

public Head ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Head() public method

public Head ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

ManosModule() public method

public ManosModule ( ) : System
return System

Options() public method

public Options ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Options() public method

public Options ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Options() public method

public Options ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Options() public method

public Options ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Options() public method

public Options ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

Post() public method

public Post ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Post() public method

public Post ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Post() public method

public Post ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Post() public method

public Post ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Post() public method

public Post ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

Put() public method

public Put ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Put() public method

public Put ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Put() public method

public Put ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Put() public method

public Put ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Put() public method

public Put ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

RenderTemplate() public static method

public static RenderTemplate ( Manos.ManosContext ctx, string template, object data ) : void
ctx Manos.ManosContext
template string
data object
return void

Route() public method

public Route ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Route() public method

public Route ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Route() public method

public Route ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Route() public method

public Route ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Route() public method

public Route ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler

Route() public method

public Route ( string pattern, MatchType matchType, ManosAction action, HttpMethod methods ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
methods HttpMethod
return RouteHandler

StartInternal() public method

public StartInternal ( ) : void
return void

Trace() public method

public Trace ( IManosModule module ) : RouteHandler
module IManosModule
return RouteHandler

Trace() public method

public Trace ( ManosAction action ) : RouteHandler
action ManosAction
return RouteHandler

Trace() public method

public Trace ( string pattern, IManosModule module ) : RouteHandler
pattern string
module IManosModule
return RouteHandler

Trace() public method

public Trace ( string pattern, ManosAction action ) : RouteHandler
pattern string
action ManosAction
return RouteHandler

Trace() public method

public Trace ( string pattern, MatchType matchType, ManosAction action ) : RouteHandler
pattern string
matchType MatchType
action ManosAction
return RouteHandler