Class ActionAttribute
Mark method as a public action exposed by this service/module
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class ActionAttribute : Attribute
- Inheritance
-
objectAttributeActionAttribute
Constructors
ActionAttribute(Methods, string, int)
public ActionAttribute(Methods Method, string filePath = "", int lineNumber = 0)
Parameters
Fields
FilePath
public string FilePath
Field Value
LineNumber
public int LineNumber
Field Value
Method
Set exposed REST methods for action.
public Methods Method
Field Value
Timeout
Set explicit timeout (in seconds) for action. (0=default)
public int Timeout
Field Value
Methods
IsDefaultAttribute()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
public override bool IsDefaultAttribute()