FlashBinderAttribute API Document
Another implementation of a parameter binding. This one allow the programmer to say that the parameter value comes from an entry in the Castle.MonoRail.Framework.Controller.Flash.
Constructors
FlashBinderAttribute()
Initializes a new instance of the Castle.MonoRail.Framework.FlashBinderAttribute class.
Properties
| Name | Type | Description |
|---|---|---|
| FlashKey | String | The flash entry to use. If none is provided, the target parameter name is used |
Methods
Bind(SmartDispatcherController controller, ParameterInfo parameterInfo) : Object
Implementation of Castle.MonoRail.Framework.IParameterBinder.Bind(Castle.MonoRail.Framework.SmartDispatcherController,System.Reflection.ParameterInfo) and it is used to read the data available and construct the parameter type accordingly.
| Parameter | Description |
|---|---|
| controller | The controller instance |
| parameterInfo | The parameter info |
CalculateParamPoints(SmartDispatcherController controller, ParameterInfo parameterInfo) : Int32
Implementation of Castle.MonoRail.Framework.IParameterBinder.CalculateParamPoints(Castle.MonoRail.Framework.SmartDispatcherController,System.Reflection.ParameterInfo) and it is used to give the method a weight when overloads are available.
| Parameter | Description |
|---|---|
| controller | The controller instance |
| parameterInfo | The parameter info |