Namespace LemonEdge.API.Core.Tasks
Classes
ServerTaskAttribute
This attribute must be marked against any implementation of ITask
If this is accessible from the client, and not only accessible from the service, then you do not also need to
mark the parameter type with the Server
ServerTaskFactory
ServerTaskParameter
The base class for any parameter that can work against a IServer
Any implementation can be refernced from the Parameter
- (IBase
Entity item, IEntityUpdater context): Creates default parameters using this constructor for the specified item and a context. - (IBase
Entity item): Creates default parameters using this constructor for the soecified item. - (): Creates default parameters using this constructor.
ServerTaskParametersAttribute
This attribute can be used to mark any implementation of the Server
It is optional if the ITask
ServerTaskResult
The base class for holding the results of any task
These results are serialisable so the results stored against the IServerTask.TaskResult by a remote server can be viewed by a client when it is complete
Any implementation must be marked with the ServerServerTaskResultAttribute
Marks any Server
ServiceContext
TaskContext
TaskRunnerBase
The base class for processing and executing tasks on either a server process or the client itself
TriggerTaskAttribute
Marks an implementation of Base
The default implementation of this is for processing the actions by notifying users of the action through different notification types (system, email).
ValidationContextFactory
Interfaces
IServerTaskFactory
The factory for retrieving an ITask
See https://help.lemonedge.com/server-tasks/ for more information
Any task requires the following:- Server
Task : An optional parameters implementation holding the parameters for the task. Must be marked with the ServerParameter Task if the associated ITaskParameters Attribute Processor is not accessible to the client. - ITask
Processor : The actual implementation of the task process itself. Marked with a ServerTask describing it and linking to its associated ServerAttribute Task (if any).Parameter - Server
Task : An optional results implementation (marked with ServerResult Task ) for storing the results of the task for client viewing/loading/etc.Result Attribute
IServiceContext
Contains a selection of common services demanded from the IService
ITaskMessage
The base interface for items reporting messages of a task status. Implemented by IServer
See https://help.lemonedge.com/help/open-architecture/status/server-tasks/statuses-view.html for more information
ITaskProcessor
The main interface for any process that can run as a IServer
Any implementation needs to be marked with the Server
Any result handler must implement ITask
ITaskResultHandler
An interface that can be implemented to handle the result returned from
Process
Must be marked with the Server
ITaskRunner
The interface any processor for implementing tasks implements
ITaskService
An interface that a service for processing IServer
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 serviceIValidationContextFactory
Enums
ServerTaskResultType
The type of area a ITask