Class ServerTaskAttribute
This attribute must be marked against any implementation of ITaskProcessor to detail how to process it
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 ServerTaskParametersAttribute
Inherited Members
Namespace: LemonEdge.API.Core.Tasks
Assembly: LemonEdge.API.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class ServerTaskAttribute : ServerTaskParametersAttribute
Constructors
ServerTaskAttribute(string, string, Type)
Creates a new instance of the server task attribute against an ITaskProcessor implementation
Declaration
public ServerTaskAttribute(string userFriendlyTaskName, string uniqueTaskGUID, Type parameterType)
Parameters
Type | Name | Description |
---|---|---|
string | userFriendlyTaskName | The user friendly name of this type of task |
string | uniqueTaskGUID | The globally unique id for this type of task. Used in parameters and results too. |
Type | parameterType | The type of a class inheriting ServerTaskParameter that holds parameters for processing this task |
Properties
CanOnlyRunOnServer
Indicates this process can only run directly connected to the database and can not be run through a web service
Declaration
public bool CanOnlyRunOnServer { get; set; }
Property Value
Type | Description |
---|---|
bool |
ParameterType
The type of a class inheriting ServerTaskParameter that holds parameters for processing this task
Declaration
public Type ParameterType { get; }
Property Value
Type | Description |
---|---|
Type |