Empeld
Empeld plugin documentation.
pluginbase.Objects.Tasks.WeakTask Class Reference
Inheritance diagram for pluginbase.Objects.Tasks.WeakTask:
pluginbase.Objects.Tasks.ITask

Public Member Functions

 WeakTask (Func< TaskResult > task, TimeSpan freq)
 
 WeakTask (Action task, TimeSpan freq)
 
 WeakTask (MethodInfo method, object target, TimeSpan freq, bool returnsVal)
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ WeakTask() [1/3]

pluginbase.Objects.Tasks.WeakTask.WeakTask ( Func< TaskResult task,
TimeSpan  freq 
)
18  {
19  _frequency = freq;
20  _weakFunc = WeakDelegate.Wrap<Func<TaskResult>>(task, () => _isDead = true);
21  }
Code generator for weak delegate wrappers
Definition: WeakDelegate.cs:13

◆ WeakTask() [2/3]

pluginbase.Objects.Tasks.WeakTask.WeakTask ( Action  task,
TimeSpan  freq 
)
24  {
25  _frequency = freq;
26  _weakAction = WeakDelegate.Wrap<Action>(task, () => _isDead = true);
27  }
Code generator for weak delegate wrappers
Definition: WeakDelegate.cs:13

◆ WeakTask() [3/3]

pluginbase.Objects.Tasks.WeakTask.WeakTask ( MethodInfo  method,
object  target,
TimeSpan  freq,
bool  returnsVal 
)
30  {
31  _frequency = freq;
32  _weakAction = WeakDelegate.Wrap<Action>(target, method, () => _isDead = true);
33  }
Code generator for weak delegate wrappers
Definition: WeakDelegate.cs:13

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