FilterAttribute API Document
Decorates a controller associating a Castle.MonoRail.Framework.IFilter implementation with it. More than one can be associated.
Quick Note
If more than one filter is associate with an action (or controller and action), the order of execution cannot be predicted. In this case use Castle.MonoRail.Framework.FilterAttribute.ExecutionOrder to define the order of execution.
Constructors
FilterAttribute(ExecuteEnum when, Type filterType)
Constructs a FilterAttribute associating the filter type and when the filter should be invoked.
| Parameter | Description |
|---|---|
| when | When to execute the filter |
| filterType | The filter implementation |
Properties
| Name | Type | Description |
|---|---|---|
| FilterType | Type | Gets the filter implementation type |
| When | ExecuteEnum | Gets when to run the filter |
| ExecutionOrder | Int32 | Gets or sets the filter execution order. The lower the value, the higher the priority |
Methods
BuildFilterDescriptors() : FilterDescriptor[]
Implementation of Castle.MonoRail.Framework.Internal.IFilterDescriptorBuilder. Returns the descriptor for this filter association.