Class TypedTransportDispatcher
Dispatcher that ensures the Document<T> and WorkRequest<T> are of the appropriate type.
[DependencyService(ManagerLifetime.Singleton, AsSelf = true, IncludeInterfaces = false)]
public class TypedTransportDispatcher : BaseJobDispatcher, IJobDispatcher
- Inheritance
-
TypedTransportDispatcher
- Implements
- Inherited Members
- Extension Methods
Constructors
TypedTransportDispatcher(IDocumentConverter, ITransportManager, IMapper, IOptions<FlowDefinitionConfiguration>)
public TypedTransportDispatcher(IDocumentConverter documentConverter, ITransportManager transportManager, IMapper mapper, IOptions<FlowDefinitionConfiguration> flowDefinitionConfiguration)
Parameters
documentConverter
IDocumentConvertertransportManager
ITransportManagermapper
IMapperflowDefinitionConfiguration
IOptions<FlowDefinitionConfiguration>
Methods
DispatchAsync(JobModel, IDocument, FlowDefinition)
Abstract method for dispatching the job and document.
protected override 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 override IDocument ProcessDocument(IDocument document)
Parameters
document
IDocument