Interface ITaskService
An interface that a service for processing IServerTask implements
The service monitors the task queue and processes tasks independantly.
Can be run from a client that is directly connected to a database, or any directly connected serviceNamespace: LemonEdge.API.Core.Tasks
Assembly: LemonEdge.API.dll
Syntax
public interface ITaskService
Properties
IsRunning
Returns true if the task service is currently running
Declaration
bool IsRunning { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
SetFileOutput(string)
Sets a path to a file to log the processing of all tasks by the sevice to
Declaration
void SetFileOutput(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | A path to file to log all task activity to |
StartOnNewThread()
Starts the service processing any IServerTask on the queue
Declaration
void StartOnNewThread()