Interface IContentItemConverter<TPrepare, TPublish>
Interface for an object that can convert items during migration.
Namespace: Tableau.Migration.Engine.Conversion
Assembly: Tableau.Migration.dll
Syntax
public interface IContentItemConverter<TPrepare, TPublish>
Type Parameters
Name | Description |
---|---|
TPrepare | The type of item being prepared from the source. |
TPublish | The type of item to be published to the destination. |
Methods
ConvertAsync(TPrepare, CancellationToken)
Converts the item to a publishable type.
Declaration
Task<TPublish> ConvertAsync(TPrepare sourceItem, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TPrepare | sourceItem | The item being prepared for publishing. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<TPublish> | The converted item. |