Table of Contents

Interface IDocumentConverter

Namespace
JobFlow.Core.Documents.Conversion
Assembly
JobFlow.Core.dll

Converts a document to its "native" type.

public interface IDocumentConverter
Extension Methods

Remarks

This will ensure the IDocument is deserialized to its associated data type.
ContainerFor example, if a document is configured in <xref href="JobFlow.Core.Configuration.OptionsConfigurationExtensions.ConfigureFlowDefinitions(JobFlow.Core.Configuration.JobFlowConfigurationBuilder%2cSystem.Action%7bJobFlow.Core.Flows.FlowDefinitionConfiguration%7d)" data-throw-if-not-resolved="false"></xref>
to use the type <em>MyDocumentType</em>, then calling <xref href="JobFlow.Core.Documents.Conversion.IDocumentConverter.Convert(JobFlow.Models.Documents.IDocument)" data-throw-if-not-resolved="false"></xref> will ensure the result is of the type: 
Document<MyDocumentType>

Methods

Convert(IDocument)

IDocument Convert(IDocument document)

Parameters

document IDocument

Returns

IDocument