Show / Hide Table of Contents

Class MaintenanceBatchPlugin

WIP - this task runs in a loop, waiting 2 seconds between each loop. This test task does nothing and ends after 10 spins.

Inheritance
Object
BatchTaskBase
MaintenanceBatchPlugin
Implements
IBatchTask
Inherited Members
BatchTaskBase._isEnding
BatchTaskBase._statusUpdateInterval
BatchTaskBase.StartTask(Int32, String, String, BatchTaskStatusChanged)
BatchTaskBase.StartTask(BatchTaskInfo, String, BatchTaskStatusChanged)
BatchTaskBase.GetTaskInfo()
BatchTaskBase.EndTask()
BatchTaskBase.ProgressCallback(Int32, Int32, Boolean)
BatchTaskBase.SetResult(String)
BatchTaskBase.SaveStreamToBlob(Stream, String, String, String)
BatchTaskBase.EnsureUdefs()
BatchTaskBase.Id
BatchTaskBase.BatchTaskInfo
BatchTaskBase.Name
BatchTaskBase.Context
BatchTaskBase.Result
BatchTaskBase.State
Namespace: SuperOffice.CRM.BatchProcessing.Plugins
Assembly: SoBatchProcessing.dll
Syntax
[BatchTask("MaintenanceBatchPlugin", Description = "Batch system maintenance", StartInterval = 3600, MinimumSleepTime = 1800, IsMultiPass = true)]
public class MaintenanceBatchPlugin : BatchTaskBase, IBatchTask, IPlugin

Constructors

MaintenanceBatchPlugin()

WIP - this task runs in a loop, waiting 2 seconds between each loop. This test task does nothing and ends after 10 spins.

Declaration
public MaintenanceBatchPlugin()

Fields

PluginName

WIP - this task runs in a loop, waiting 2 seconds between each loop. This test task does nothing and ends after 10 spins.

Declaration
public const string PluginName = "MaintenanceBatchPlugin"
Field Value
Type Description
String

Methods

Run(String, String)

Does nothing - test task. Ends after 10 invocations.

Declaration
protected override bool Run(string name, string context)
Parameters
Type Name Description
String name
String context
Returns
Type Description
Boolean

True to indicate to success at doing nothing.

Overrides
SuperOffice.CRM.BatchProcessing.Tasks.BatchTaskBase.Run(System.String, System.String)

Implements

IBatchTask

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top