Search Results for

    Show / Hide Table of Contents

    Class TaskServiceSettings

    Inheritance
    object
    TaskServiceSettings
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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: false
    Declaration
    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

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.