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
Inheritance
Inherited Members
Namespace: LemonEdge.API.Tasks
Assembly: API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
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 |
---|---|---|
System.String | userFriendlyTaskName | The user friendly name of this type of task |
System.String | uniqueTaskGUID | The globally unique id for this type of task. Used in parameters and results too. |
System.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 |
---|---|
System.Boolean |
ParameterType
The type of a class inheriting ServerTaskParameter that holds parameters for processing this task
Declaration
public Type ParameterType { get; }
Property Value
Type | Description |
---|---|
System.Type |