Class TimeoutAttribute
Used to define the timeout duration for an event method in units of seconds.
Implements
Inherited Members
Namespace: Attachmate.Verastream.HostIntegrator.ScriptAPI
Assembly: Attachmate.Verastream.HostIntegrator.ScriptAPI.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public class TimeoutAttribute : Attribute, _Attribute
Remarks
The default in generated template classes will be EventHandlerConstant.DefaultTimeout. This means the event defers to the model's default value for event duration.
Add a [TimeoutAttribute(int)]
clause to
your method to set a custom timeout, where int
is
replaced by a number clause.
Constructors
TimeoutAttribute(EventHandlerConstant)
Constructor
Declaration
public TimeoutAttribute(EventHandlerConstant duration)
Parameters
Type | Name | Description |
---|---|---|
EventHandlerConstant | duration | Desired value of timeout duration drawn from special values in EventHandlerConstant. |
TimeoutAttribute(int)
Constructor
Declaration
public TimeoutAttribute(int duration)
Parameters
Type | Name | Description |
---|---|---|
int | duration | Desired value of timeout duration in seconds. |
Properties
Duration
Sets value of duration.
Declaration
public int Duration { get; set; }
Property Value
Type | Description |
---|---|
int |