Method | Description | |
---|---|---|
ControllerLifecycleExecutor ( |
Initializes a new instance of the ControllerLifecycleExecutor class.
|
|
Dispose ( ) : void |
Disposes the filters and resources associated with a controller.
|
|
InitializeController ( string areaName, string controllerName, string actionName ) : void |
Should bring the controller to an usable state by populating its fields with values that represent the current request
|
|
PerformErrorHandling ( ) : void |
Performs the error handling: - Tries to run the rescue page
|
|
ProcessSelectedAction ( ) : void |
Executes the method or the dynamic action
|
|
ProcessSelectedAction ( IDictionary actionArgs ) : void |
Executes the method or the dynamic action with custom arguments
|
|
RunStartRequestFilters ( ) : bool |
Runs the start request filters.
|
|
SelectAction ( string actionName, string controllerName ) : bool |
Selects the action to execute based on the url information
|
|
SelectAction ( string actionName, string controllerName, IDictionary actionArgs ) : bool |
Selects the action to execute based on the url information
|
|
Service ( IServiceProvider provider ) : void |
Invoked by the framework in order to give a chance to obtain other services
|
Method | Description | |
---|---|---|
CopyFilterDescriptors ( ) : Castle.MonoRail.Framework.Internal.FilterDescriptor[] |
Clones all Filter descriptors, in order to get a writable copy.
|
|
CreateAndInitializeHelpers ( ) : void |
Creates the and initialize helpers associated with a controller.
|
|
CreateResources ( |
Creates the resources associated with a controller
|
|
GetRescueFor ( IList rescues, |
Gets the rescue for the specified exception type.
|
|
ObtainDefaultLayoutName ( ) : String |
Obtains the name of the default layout.
|
|
PerformRescue ( |
Performs the rescue.
|
|
PrepareTransformFilter ( MethodInfo method ) : void |
Prepares the transform filter.
|
|
RaiseOnActionExceptionOnExtension ( ) : void |
Raises the on action exception on extension.
|
|
ReleaseResources ( ) : void |
Releases the resources.
|
|
ShouldSkip ( MethodInfo method ) : bool |
Identifies if no filter should run for the given action.
|
Method | Description | |
---|---|---|
CreateFiltersDescriptors ( ) : void | ||
CreateStandardHelpers ( IDictionary helpers ) : void | ||
DisposeFilters ( ) : void | ||
FindOutDefaultMethod ( IDictionary methodArgs ) : |
The following lines were added to handle _default processing if present look for and load _default action method DefaultActionAttribute Method arguments
|
|
InitializeControllerFieldsFromServiceProvider ( ) : void | ||
PerformAdditionalHelperInitialization ( object helperInstance ) : void |
Performs the additional helper initialization checking if the helper instance implements IServiceEnabledComponent.
|
|
PrepareResources ( ) : void | ||
PrepareTransformFilter ( ) : void | ||
ProcessFilter ( ExecuteEnum when, FilterDescriptor desc ) : bool | ||
ProcessFilters ( ExecuteEnum when ) : bool | ||
ProcessScaffoldIfPresent ( ) : void |
Invokes the scaffold support if the controller is associated with a scaffold
|
|
ProcessView ( ) : void | ||
RunAfterActionFilters ( ) : void |
Runs the after action filters.
|
|
RunAfterRenderFilters ( ) : void |
Runs the after view rendering filters.
|
|
RunBeforeActionFilters ( ) : bool |
Runs the after view rendering filters.
|
public ControllerLifecycleExecutor ( |
||
controller | The controller. | |
context | IRailsEngineContext | The context. |
return | System |
protected CopyFilterDescriptors ( ) : Castle.MonoRail.Framework.Internal.FilterDescriptor[] | ||
return | Castle.MonoRail.Framework.Internal.FilterDescriptor[] |
protected CreateAndInitializeHelpers ( ) : void | ||
return | void |
protected CreateResources ( |
||
method | The method. | |
return | void |
protected GetRescueFor ( IList rescues, |
||
rescues | IList | The rescues. |
exceptionType | Type of the exception. | |
return |
public InitializeController ( string areaName, string controllerName, string actionName ) : void | ||
areaName | string | The area name |
controllerName | string | The controller name |
actionName | string | The action name |
return | void |
protected ObtainDefaultLayoutName ( ) : String | ||
return | String |
protected PerformRescue ( |
||
method | The action (can be null in the case of dynamic actions). | |
ex | The exception. | |
return | bool |
protected PrepareTransformFilter ( MethodInfo method ) : void | ||
method | MethodInfo | The method. |
return | void |
public ProcessSelectedAction ( IDictionary actionArgs ) : void | ||
actionArgs | IDictionary | The action args. |
return | void |
protected RaiseOnActionExceptionOnExtension ( ) : void | ||
return | void |
public SelectAction ( string actionName, string controllerName ) : bool | ||
actionName | string | The action name |
controllerName | string | The controller name |
return | bool |
public SelectAction ( string actionName, string controllerName, IDictionary actionArgs ) : bool | ||
actionName | string | The action name |
controllerName | string | The controller name |
actionArgs | IDictionary | The action arguments. |
return | bool |
public Service ( IServiceProvider provider ) : void | ||
provider | IServiceProvider | The service proviver |
return | void |
protected ShouldSkip ( MethodInfo method ) : bool | ||
method | MethodInfo | The method. |
return | bool |