Empeld
Empeld plugin documentation.
pluginbase.Objects.Tasks.SingleTask Class Reference

Runs something once after a delay, and immediately removes More...

Inheritance diagram for pluginbase.Objects.Tasks.SingleTask:
pluginbase.Objects.Tasks.ITask

Public Member Functions

 SingleTask (Action method, TimeSpan delay)
 
override string ToString ()
 

Properties

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

Detailed Description

Runs something once after a delay, and immediately removes

Constructor & Destructor Documentation

◆ SingleTask()

pluginbase.Objects.Tasks.SingleTask.SingleTask ( Action  method,
TimeSpan  delay 
)
13  {
14  _method = method;
15  Frequency = delay;
16  }
TimeSpan Frequency
Definition: SingleTask.cs:24

Member Function Documentation

◆ ToString()

override string pluginbase.Objects.Tasks.SingleTask.ToString ( )
29  {
30  return string.Format("[SingleTask: {0}:{1}]", _method.Target.GetType().Name, _method.Method.Name);
31  }

Property Documentation

◆ Frequency

TimeSpan pluginbase.Objects.Tasks.SingleTask.Frequency
get

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