Class ActionAttribute
Decorates MVC Actions
Inheritance
System.Object
System.Attribute
ActionAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Wave.Mvc
Assembly: Azos.Wave.dll
Syntax
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public class ActionAttribute : Attribute
Constructors
ActionAttribute()
Declaration
public ActionAttribute()
ActionAttribute(Int32)
Declaration
public ActionAttribute(int order)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | order |
ActionAttribute(String, Int32, Boolean)
Specifies name override
Declaration
public ActionAttribute(string name, int order, bool strictParamBinding = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | order | |
System.Boolean | strictParamBinding |
ActionAttribute(String, Int32, String, Boolean)
Specifies name override and WorkMatch instances in Laconic format. i.e.: 'match{name="A" order=0 is-local=false} match{name="B" order=0 methods="post,put" is-local=true}'
Declaration
public ActionAttribute(string name, int order, string matchScript, bool strictParamBinding = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | order | |
System.String | matchScript | |
System.Boolean | strictParamBinding |
Properties
Matches
Returns ordered matches configured from script or empty enum
Declaration
public IEnumerable<WorkMatch> Matches { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<WorkMatch> |
MatchScript
Returns match script in Laconic config format if the one was supplied or empty string
Declaration
public string MatchScript { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
When set, specifies the invocation name override, null by default which means that the name of decorated member should be used
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Order
Dictates the match making order of actions within the group
Declaration
public int Order { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
StrictParamBinding
Returns true if default parameter binder should not perform indirect value conversions, i.e. integer tick number as date time. False by default
Declaration
public bool StrictParamBinding { get; }
Property Value
Type | Description |
---|---|
System.Boolean |