WebFarmUpdaterAsync Class |
Namespace: CMS.WebFarmSync
public class WebFarmUpdaterAsync : ThreadQueueWorker<string, WebFarmUpdaterAsync>
The WebFarmUpdaterAsync type exposes the following members.
Name | Description | |
---|---|---|
WebFarmUpdaterAsync |
Name | Description | |
---|---|---|
CreateThread |
Creates a worker thread object. Override to modify the thread configuration
(Inherited from ThreadWorkerT.) | |
Dequeue |
Returns the first item in the queue and removes it
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
DoMaintenance |
Runs the maintenance routine for the worker
(Inherited from ThreadWorkerT.) | |
EnsureUpdater |
Default constructor.
| |
Finish |
Finishes the worker process. Implement this method to specify what the worker must do in order to not lose its internal data when being finished. Leave empty if no extra action is required.
(Overrides ThreadWorkerTFinish.) | |
Initialize |
Initializes the worker. Runs in the worker thread before the thread processes the first iteration.
(Inherited from ThreadWorkerT.) | |
Process |
Method processing queues actions.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
ProcessItem |
Processes the item in the queue
(Overrides ThreadQueueWorkerTItem, TWorkerProcessItem(TItem).) | |
ProcessItems |
Processes the given list of items. Override this method to process queued items as a bulk. Returns the number of processed items.
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
RegisterInternal |
Registers the worker
(Inherited from ThreadWorkerT.) | |
ResetInternal |
Resets the worker and clears the queue
(Inherited from ThreadQueueWorkerTItem, TWorker.) | |
Run |
Run web farm update, this is not asynchronous execution.
| |
Run(WindowsIdentity) |
Runs the action.
(Inherited from ThreadWorkerT.) | |
RunAsync |
Runs the task in an asynchronous thread.
(Inherited from ThreadWorkerT.) | |
RunMaintenance |
Runs the maintenance routine for the worker if it should run.
(Inherited from ThreadWorkerT.) | |
RunProcess |
Runs the internal process of the worker
(Inherited from ThreadWorkerT.) |
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
DefaultInterval |
Gets the interval in milliseconds for the worker.
(Overrides ThreadWorkerTDefaultInterval.) | |
CheckDuplicity |
If true, the queue checks the duplicity when inserting items. The duplicity is checked using the default comparer of the item.
(Overrides ThreadQueueWorkerTItem, TWorkerCheckDuplicity.) | |
LastRun |
Last run time
(Inherited from ThreadWorkerT.) | |
LoggingStrategy |
Provides logging strategy.
| |
MaintenanceInterval |
Gets the maintenance interval in milliseconds for the worker. When 0 (default), the maintenance is not performed.
(Inherited from ThreadWorkerT.) | |
NextMaintenance |
Next maintenance time
(Inherited from ThreadWorkerT.) | |
PollThread |
Gets or sets thread which is periodically checking for new tasks.
(Inherited from ThreadWorkerT.) | |
Urls |
Urls.
| |
UseLogContext |
If true, the thread uses a log context for its operations
(Inherited from ThreadWorkerT.) |