Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Objects.Tasks.SingleTask Class Reference
Inheritance diagram for pluginbase.Objects.Tasks.SingleTask:
pluginbase.Objects.Tasks.ITask

Public Member Functions

 SingleTask (Action method, TimeSpan delay)
 
TaskResult InvokeTask (long maxMilliseconds)
 
override string ToString ()
 

Properties

TimeSpan Frequency [get]
 
- Properties inherited from pluginbase.Objects.Tasks.ITask
TimeSpan Frequency [get]
 

Constructor & Destructor Documentation

pluginbase.Objects.Tasks.SingleTask.SingleTask ( Action  method,
TimeSpan  delay 
)
10  {
11  _method = method;
12  Frequency = delay;
13  }
TimeSpan Frequency
Definition: SingleTask.cs:21

Member Function Documentation

TaskResult pluginbase.Objects.Tasks.SingleTask.InvokeTask ( long  maxMilliseconds)

Implements pluginbase.Objects.Tasks.ITask.

16  {
17  _method();
18  return TaskResult.Remove;
19  }
TaskResult
The result of a scheduled task
Definition: TaskResult.cs:8
override string pluginbase.Objects.Tasks.SingleTask.ToString ( )
26  {
27  return string.Format("[SingleTask: {0}:{1}]", _method.Target.GetType().Name, _method.Method.Name);
28  }

Property Documentation

TimeSpan pluginbase.Objects.Tasks.SingleTask.Frequency
get

The documentation for this class was generated from the following file: