Class SourceContentItemPreparer<TContent>
IContentItemPreparer<TContent, TPublish> implementation that publishes the source item as-is and does not require extra pulled information.
Implements
IContentItemPreparer<TContent, TContent>
Inherited Members
Namespace: Tableau.Migration.Engine.Preparation
Assembly: Tableau.Migration.dll
Syntax
public class SourceContentItemPreparer<TContent> : ContentItemPreparerBase<TContent, TContent>, IContentItemPreparer<TContent, TContent> where TContent : class
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
SourceContentItemPreparer(IContentTransformerRunner, IDestinationContentReferenceFinderFactory)
Creates a new SourceContentItemPreparer<TContent>.
Declaration
public SourceContentItemPreparer(IContentTransformerRunner transformerRunner, IDestinationContentReferenceFinderFactory destinationFinderFactory)
Parameters
Type | Name | Description |
---|---|---|
IContentTransformerRunner | transformerRunner | A transformer runner.The destination finder factory. |
IDestinationContentReferenceFinderFactory | destinationFinderFactory | A transformer runner.The destination finder factory. |
Methods
PullAsync(ContentMigrationItem<TContent>, CancellationToken)
Pulls any additional information needed to prepare/publish a content item.
Declaration
protected override Task<IResult<TContent>> PullAsync(ContentMigrationItem<TContent> item, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationItem<TContent> | item | The content item to use to pull additional information. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IResult<TContent>> | The item to use for publishing. |