C# Class Castle.MonoRail.Framework.Filter

Base class for filters which dispatches to virtual methods based on the ExecuteEnum value.
Inheritance: IFilter
Exibir arquivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool

Implementors should perform they filter logic and return true if the action should be processed.

Protected Methods

Method Description
OnAfterAction ( IRailsEngineContext context, Controller controller ) : void

Override this method if the filter was set to handle ExecuteEnum.AfterAction

OnAfterRendering ( IRailsEngineContext context, Controller controller ) : void

Override this method if the filter was set to handle ExecuteEnum.AfterRendering

OnBeforeAction ( IRailsEngineContext context, Controller controller ) : bool

Override this method if the filter was set to handle ExecuteEnum.BeforeAction

OnStartRequest ( IRailsEngineContext context, Controller controller ) : bool

Override this method if the filter was set to handle ExecuteEnum.StartRequest

Method Details

OnAfterAction() protected method

Override this method if the filter was set to handle ExecuteEnum.AfterAction
protected OnAfterAction ( IRailsEngineContext context, Controller controller ) : void
context IRailsEngineContext The MonoRail request context
controller Controller The controller instance
return void

OnAfterRendering() protected method

Override this method if the filter was set to handle ExecuteEnum.AfterRendering
protected OnAfterRendering ( IRailsEngineContext context, Controller controller ) : void
context IRailsEngineContext The MonoRail request context
controller Controller The controller instance
return void

OnBeforeAction() protected method

Override this method if the filter was set to handle ExecuteEnum.BeforeAction
protected OnBeforeAction ( IRailsEngineContext context, Controller controller ) : bool
context IRailsEngineContext The MonoRail request context
controller Controller The controller instance
return bool

OnStartRequest() protected method

Override this method if the filter was set to handle ExecuteEnum.StartRequest
protected OnStartRequest ( IRailsEngineContext context, Controller controller ) : bool
context IRailsEngineContext The MonoRail request context
controller Controller The controller instance
return bool

Perform() public method

Implementors should perform they filter logic and return true if the action should be processed.
public Perform ( ExecuteEnum exec, IRailsEngineContext context, Controller controller ) : bool
exec ExecuteEnum When this filter is being invoked
context IRailsEngineContext Current context
controller Controller The controller instance
return bool