Class BaseJobDispatcher
Abstract base class for Job dispatchers.
public abstract class BaseJobDispatcher : IJobDispatcher
- Inheritance
-
BaseJobDispatcher
- Implements
- Derived
- Extension Methods
Constructors
BaseJobDispatcher(IMapper, IOptions<FlowDefinitionConfiguration>)
protected BaseJobDispatcher(IMapper mapper, IOptions<FlowDefinitionConfiguration> flowDefinitionConfiguration)
Parameters
mapper
IMapperflowDefinitionConfiguration
IOptions<FlowDefinitionConfiguration>
Fields
_flowDefinitionConfiguration
protected readonly IOptions<FlowDefinitionConfiguration> _flowDefinitionConfiguration
Field Value
_mapper
protected readonly IMapper _mapper
Field Value
- IMapper
Methods
DispatchAsync(Job, JObject, IDocument)
public Task DispatchAsync(Job job, JObject data, IDocument document)
Parameters
job
Jobdata
JObjectdocument
IDocument
Returns
DispatchAsync(JobModel, IDocument, FlowDefinition)
Abstract method for dispatching the job and document.
protected abstract Task DispatchAsync(JobModel jobModel, IDocument processedDoc, FlowDefinition flowDefinition)
Parameters
jobModel
JobModelprocessedDoc
IDocumentflowDefinition
FlowDefinition
Returns
ProcessDocument(IDocument)
Process incoming document (to convert it, for instance).
protected virtual IDocument ProcessDocument(IDocument document)
Parameters
document
IDocument