Class DirectContentItemConverter<TPrepare, TPublish>
Converter that returns the item with no conversion, for when the prepartion and publish type are the same.
Inheritance
object
DirectContentItemConverter<TPrepare, TPublish>
Implements
IContentItemConverter<TPrepare, TPublish>
Namespace: Tableau.Migration.Engine.Conversion
Assembly: Tableau.Migration.dll
Syntax
public class DirectContentItemConverter<TPrepare, TPublish> : IContentItemConverter<TPrepare, TPublish> where TPrepare : class where TPublish : class
Type Parameters
| Name | Description |
|---|---|
| TPrepare | |
| TPublish |
Methods
ConvertAsync(TPrepare, CancellationToken)
Converts the item to a publishable type.
Declaration
public 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. |