Class SourceContentItemPreparer<TContent, TPublish>
IContentItemPreparer<TContent, TPublish> implementation that publishes the source item as-is and does not require extra pulled information.
Inheritance
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Preparation
Assembly: Tableau.Migration.dll
Syntax
public class SourceContentItemPreparer<TContent, TPublish> : ContentItemPreparerBase<TContent, TContent, TPublish>, IContentItemPreparer<TContent, TPublish> where TContent : class where TPublish : class
Type Parameters
Name | Description |
---|---|
TContent | The content type.The pull return type.The publish type. |
TPublish | The content type.The pull return type.The publish type. |
Constructors
SourceContentItemPreparer(IMigrationPipeline, IContentTransformerRunner, IDestinationContentReferenceFinderFactory, ISharedResourcesLocalizer)
Creates a new SourceContentItemPreparer<TContent, TPublish>.
Declaration
public SourceContentItemPreparer(IMigrationPipeline pipeline, IContentTransformerRunner transformerRunner, IDestinationContentReferenceFinderFactory destinationFinderFactory, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPipeline | pipeline | The migration pipeline.A transformer runner.The destination finder factory.A localizer. |
IContentTransformerRunner | transformerRunner | The migration pipeline.A transformer runner.The destination finder factory.A localizer. |
IDestinationContentReferenceFinderFactory | destinationFinderFactory | The migration pipeline.A transformer runner.The destination finder factory.A localizer. |
ISharedResourcesLocalizer | localizer | The migration pipeline.A transformer runner.The destination finder factory.A localizer. |
Methods
PullAsync(ContentMigrationItem<TContent>, CancellationToken)
Pulls any additional information needed to prepare a content item for conversion and/or publishing.
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 conversion and/or publishing. |