Class BatchTaskAttribute
BatchTaskAttribute defines attributes for a batch task plugin.
Namespace: SuperOffice.CRM.BatchProcessing
Assembly: SoBatchProcessing.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class BatchTaskAttribute : PluginAttribute
Constructors
BatchTaskAttribute(string)
Default constructor using all default values.
Declaration
public BatchTaskAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
BatchTaskAttribute(string, BatchTaskCancellationBehaviour)
Constructor to specify cancellation behaviour
Declaration
public BatchTaskAttribute(string name, BatchTaskCancellationBehaviour cancellationBehaviour)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
BatchTaskCancellationBehaviour | cancellationBehaviour |
Properties
CancellationBehaviour
Cancellation behaviour - indicates if the batch task is cancellable
Declaration
public BatchTaskCancellationBehaviour CancellationBehaviour { get; set; }
Property Value
Type | Description |
---|---|
BatchTaskCancellationBehaviour |
DefaultCancellationBehaviour
Default cancellation behaviour
Declaration
public static BatchTaskCancellationBehaviour DefaultCancellationBehaviour { get; }
Property Value
Type | Description |
---|---|
BatchTaskCancellationBehaviour |
Description
Gets or sets Description
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
IsMultiPass
Should the task be executed in a loop? Default value is false.
Declaration
public bool IsMultiPass { get; set; }
Property Value
Type | Description |
---|---|
bool |
ManualCleanup
Should cleanup of batchtask-related data in db be deferred?
Declaration
public bool ManualCleanup { get; set; }
Property Value
Type | Description |
---|---|
bool |
MinimumSleepTime
Minimum time in milliseconds to sleep between execution of the task when it is executed multiple times (e.g. IsMultiPass = true).
Declaration
public int MinimumSleepTime { get; set; }
Property Value
Type | Description |
---|---|
int |
StartInterval
Interval in milliseconds between each time the task is executed when it is executed multiple times (e.g. IsMultiPass = true).
Declaration
public int StartInterval { get; set; }
Property Value
Type | Description |
---|---|
int |
Timeout
Gets or sets Timeout
Declaration
public int Timeout { get; set; }
Property Value
Type | Description |
---|---|
int |