Class TaskSchedulerConfiguration
The properties for a user-defined task scheduler such as Name, MaxConcurrency, PollRateMs, and TaskTypes
Inherited Members
Namespace: LemonEdge.API
Assembly: LemonEdge.API.dll
Syntax
public class TaskSchedulerConfiguration
Constructors
TaskSchedulerConfiguration()
Declaration
public TaskSchedulerConfiguration()
Properties
MaxConcurrency
The maximum number of parallel tasks that may execute at a given time (per scheduler)
Declaration
public int MaxConcurrency { get; set; }
Property Value
Type | Description |
---|---|
int |
Name
The name of the task scheduler
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
PollRateMs
The rate at which to poll for new tasks in milliseconds
Declaration
public int PollRateMs { get; set; }
Property Value
Type | Description |
---|---|
int |
TaskTypes
The supported task types for the particular task scheduler
Declaration
public List<Guid> TaskTypes { get; set; }
Property Value
Type | Description |
---|---|
List<Guid> |
Methods
IsAcceptedTaskType(Guid)
Whether the given task type is accepted by this configuration.
Declaration
public bool IsAcceptedTaskType(Guid taskType)
Parameters
Type | Name | Description |
---|---|---|
Guid | taskType |
Returns
Type | Description |
---|---|
bool |