From: <sv...@ca...> - 2005-12-22 16:40:51
|
User: hammett Date: 2005/12/22 11:35 AM Modified: /trunk/MonoRail/Castle.MonoRail.Framework/Attributes/ FilterAttribute.cs /trunk/MonoRail/Castle.MonoRail.Framework/Internal/ FilterDescriptor.cs Log: *Sigh* File Changes: Directory: /trunk/MonoRail/Castle.MonoRail.Framework/Attributes/ ================================================================ File [modified]: FilterAttribute.cs Delta lines: +3 -3 =================================================================== --- trunk/MonoRail/Castle.MonoRail.Framework/Attributes/FilterAttribute.cs 2005-12-22 15:13:11 UTC (rev 1510) +++ trunk/MonoRail/Castle.MonoRail.Framework/Attributes/FilterAttribute.cs 2005-12-22 16:35:36 UTC (rev 1511) @@ -57,12 +57,12 @@ /// Decorates a controller associating a <see cref="IFilter"/> /// implementation with it. More than one can be associated. /// </summary> - [AttributeUsage(AttributeTargets.Class, AllowMultiple=true, Inherited=true)] + [AttributeUsage(AttributeTargets.Class, AllowMultiple=true, Inherited=true), Serializable] public class FilterAttribute : Attribute { private readonly Type _filterType; private readonly ExecuteEnum _when; - private short _executionOrder = Int16.MaxValue; + private int _executionOrder = Int32.MaxValue; /// <summary> /// Constructs a FilterAttribute associating @@ -91,7 +91,7 @@ get { return _when; } } - public short ExecutionOrder + public int ExecutionOrder { get { return _executionOrder; } set { _executionOrder = value; } Directory: /trunk/MonoRail/Castle.MonoRail.Framework/Internal/ ============================================================== File [modified]: FilterDescriptor.cs Delta lines: +1 -11 =================================================================== --- trunk/MonoRail/Castle.MonoRail.Framework/Internal/FilterDescriptor.cs 2005-12-22 15:13:11 UTC (rev 1510) +++ trunk/MonoRail/Castle.MonoRail.Framework/Internal/FilterDescriptor.cs 2005-12-22 16:35:36 UTC (rev 1511) @@ -45,21 +45,11 @@ get { return _attribute.When; } } - public short ExecutionOrder + public int ExecutionOrder { get { return _attribute.ExecutionOrder; } } -// public bool ExecuteFilterBefore -// { -// get { return (When & ExecuteEnum.BeforeAction) != 0; } -// } -// -// public bool ExecuteFilterAfter -// { -// get { return (When & ExecuteEnum.AfterAction) != 0; } -// } - public IFilter FilterInstance { get { return _filterInstance; } |