Interface IContentItemPreparer<TContent, TPublish>
Interface for an object that can prepare a content item for publishing.
Namespace: Tableau.Migration.Engine.Preparation
Assembly: Tableau.Migration.dll
Syntax
public interface IContentItemPreparer<TContent, TPublish> where TPublish : class
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
TPublish | The publish type. |
Methods
PrepareAsync(ContentMigrationItem<TContent>, CancellationToken)
Prepares a content item for publishing.
Declaration
Task<IResult<TPublish>> PrepareAsync(ContentMigrationItem<TContent> item, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationItem<TContent> | item | The item to prepare. |
CancellationToken | cancel | A cancellation token to obye. |
Returns
Type | Description |
---|---|
Task<IResult<TPublish>> | The preparation result. |