Class SourceContentItemPreparer<TContent, TPublish>
IContentItemPreparer<TContent, TPublish> implementation that publishes the source item as-is and does not require extra pulled information.
Inheritance
object
ContentItemPreparerBase<TContent, TContent, TPublish>
SourceContentItemPreparer<TContent, TPublish>
Implements
IContentItemPreparer<TContent, TPublish>
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, IContentReference 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, IMigrationHookRunner, IContentTransformerRunner, IDestinationContentReferenceFinderFactory, ILogger<SourceContentItemPreparer<TContent, TPublish>>, ISharedResourcesLocalizer)
Creates a new SourceContentItemPreparer<TContent, TPublish>.
Declaration
public SourceContentItemPreparer(IMigrationPipeline pipeline, IMigrationHookRunner hooks, IContentTransformerRunner transformers, IDestinationContentReferenceFinderFactory destinationFinderFactory, ILogger<SourceContentItemPreparer<TContent, TPublish>> logger, ISharedResourcesLocalizer localizer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationPipeline | pipeline | |
| IMigrationHookRunner | hooks | |
| IContentTransformerRunner | transformers | |
| IDestinationContentReferenceFinderFactory | destinationFinderFactory | |
| ILogger<SourceContentItemPreparer<TContent, TPublish>> | logger | |
| ISharedResourcesLocalizer | 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. |