Interface ITaskRunner
The interface any processor for implementing tasks implements
Namespace: LemonEdge.API.Tasks
Assembly: API.dll
Syntax
public interface ITaskRunner : IProcessor
Properties
DBAlias
The current connected database alias the task is running against.
Used for tasks that store results in files using WriteStream(String, String, Stream)
Declaration
string DBAlias { get; }
Property Value
Type | Description |
---|---|
System.String |
Task
The current task being processed by this task runner
Declaration
IServerTask Task { get; }
Property Value
Type | Description |
---|---|
IServerTask |
TimeStarted
The datetime stamp the processing of this task was started
Declaration
DateTime TimeStarted { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
CreateUpdater()
Creates a new context for querying and updating the entire lemonedge platform
Can be used by tasks that perform multiple isolated actions
Declaration
Task<IEntityUpdater> CreateUpdater()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEntityUpdater> | A new context for querying and updating the entire lemonedge platform |