Class TaskServiceSettings
Inherited Members
Namespace: LemonEdge.API
Assembly: LemonEdge.API.dll
Syntax
public class TaskServiceSettings
Constructors
TaskServiceSettings()
Declaration
public TaskServiceSettings()
Fields
SECTION_NAME
Declaration
public const string SECTION_NAME = "LemonEdge:TaskServiceSettings"
Field Value
Type | Description |
---|---|
string |
Properties
DisableDefaultScheduler
Flag to disable the default scheduler
Declaration
public bool DisableDefaultScheduler { get; set; }
Property Value
Type | Description |
---|---|
bool |
ExcludeCustomTaskSchedulerTasksFromDefault
Flag to indicate that the default scheduler should skip tasks defined by other schedulers
Declaration
public bool ExcludeCustomTaskSchedulerTasksFromDefault { get; set; }
Property Value
Type | Description |
---|---|
bool |
ExcludedTasks
List of task types to be excluded from processing by the task service
Declaration
public List<Guid> ExcludedTasks { get; set; }
Property Value
Type | Description |
---|---|
List<Guid> |
InitiallyConnectToDatabasesOnStartup
Indicates when this service initially starts up that it should connect to each database. This can be configured not to happen if the task service is running from a storage queue instead, but you may want an initial connection to verify databases.
Declaration
public bool InitiallyConnectToDatabasesOnStartup { get; set; }
Property Value
Type | Description |
---|---|
bool |
MaxParallelTasks
Maximum parallel tasks to undertake at a time.
Declaration
public int MaxParallelTasks { get; set; }
Property Value
Type | Description |
---|---|
int |
StoppingTaskTimeout
Timeout limit for task operations to complete.
Declaration
public TimeSpan StoppingTaskTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
TaskSchedulers
User defined TaskSchedulerConfiguration
Declaration
public List<TaskSchedulerConfiguration> TaskSchedulers { get; set; }
Property Value
Type | Description |
---|---|
List<TaskSchedulerConfiguration> |
TaskServiceNewCacheOnEveryTask
Indicates the task service will create a new cache when processing every task so it is not out of sync with any changes within the database itself
This is only really needed if the service is not aware through messaging, or shared cache, of any database changes
Default: falseDeclaration
public bool TaskServiceNewCacheOnEveryTask { get; set; }
Property Value
Type | Description |
---|---|
bool |
TaskServicePollTimeInMilliseconds
The gap between the task service polling the database for any new tasks (if it isn't using the storage account as a queue)
Default: 1000 (milliseconds)
Declaration
public int TaskServicePollTimeInMilliseconds { get; set; }
Property Value
Type | Description |
---|---|
int |
TaskServiceQueueName
The name of the queue for the task service
Declaration
public string TaskServiceQueueName { get; set; }
Property Value
Type | Description |
---|---|
string |
UseStorageForTaskServiceQueue
Indicates you want the system to use the storage to create a queue for the task service rather than the task service polling the database continually.
For Azure this will use an Azure queue and means you can have a SQL Azure database setup as serverless while the task service uses the azure queue so as to allow the database to powerdown when unsused
Default: false
Declaration
public bool UseStorageForTaskServiceQueue { get; set; }
Property Value
Type | Description |
---|---|
bool |