Class TypedTransportDispatcher
Dispatcher that ensures the Document<T> and WorkRequest<T> are of the appropriate type.
[ApplicationService(ManagerLifetime.Singleton, AsSelf = true, IncludeInterfaces = false)]
public class TypedTransportDispatcher : BaseJobDispatcher, IJobDispatcher
- Inheritance
-
objectTypedTransportDispatcher
- Implements
- Inherited Members
- Extension Methods
Constructors
TypedTransportDispatcher(IDocumentConverter, ITransportManager, IMapper, IOptions<FlowDefinitionConfiguration>)
public TypedTransportDispatcher(IDocumentConverter documentConverter, ITransportManager transportManager, IMapper mapper, IOptions<FlowDefinitionConfiguration> flowDefinitionConfiguration)
Parameters
documentConverterIDocumentConvertertransportManagerITransportManagermapperIMapperflowDefinitionConfigurationIOptions<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
jobModelJobModelprocessedDocIDocumentflowDefinitionFlowDefinition
Returns
ProcessDocument(IDocument)
Process incoming document (to convert it, for instance).
protected override IDocument ProcessDocument(IDocument document)
Parameters
documentIDocument