Template base class for all factory classes that create
Worker instances.
Inheritance Hierarchy
Spotfire.Dxp.Framework.ThreadingWorkerFactory
Spotfire.Dxp.Framework.ThreadingWorkerFactoryTWorker, TModel
Spotfire.Dxp.Application.ExtensionCustomWorkerFactoryTWorker, TModel
Namespace: Spotfire.Dxp.Framework.Threading
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
Syntax
C#
public abstract class WorkerFactory<TWorker, TModel> : WorkerFactory where TWorker : Worker where TModel : DocumentNode
Type Parameters
- TWorker
- The type of the worker.
- TModel
- The type of the worker model.
The WorkerFactoryTWorker, TModel type exposes the following members.
Methods
Name | Description | |
---|---|---|
CreateCore | Override this method to create the new Worker.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCachingBehaviorCore |
Override this method to specify the caching behavior of results of
a work item. Default is no caching.
(Inherited from WorkerFactory.) | |
GetItemKeyCore | Override this method to provide your item key.
Must be overridden when a caching behavior is specified.
This key normally maps to the properties you have to read
from the WorkItem in DoWorkCore(TModel, TItem).
| |
GetModelKeyCore | Override this method to provide your model key.
This key normally maps to the properties you have to read
from the document node in the worker.
| |
GetThreadingModelCore |
Specifies the threading model of the Worker.
Override this method to specify a threading model.
Default is dedicated thread.
(Inherited from WorkerFactory.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetWorkerModelTriggerCore | Override this method to provide a trigger that triggers
when the properties that the worker uses changes.
The default implementation returns NeverTrigger.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Version Information
See Also