Class EndpointContentItemPreparer<TContent, TPublish>
IContentItemPreparer<TContent, TPublish> implementation that pulls the publish item from the source endpoint.
Inheritance
ContentItemPreparerBase<TContent, TPublish>
EndpointContentItemPreparer<TContent, TPublish>
Implements
IContentItemPreparer<TContent, TPublish>
Inherited Members
Namespace: Tableau.Migration.Engine.Preparation
Assembly: Tableau.Migration.dll
Syntax
public class EndpointContentItemPreparer<TContent, TPublish> : ContentItemPreparerBase<TContent, TPublish>, IContentItemPreparer<TContent, TPublish> where TPublish : class
Type Parameters
Name | Description |
---|---|
TContent | The content type.The publish type. |
TPublish | The content type.The publish type. |
Constructors
EndpointContentItemPreparer(ISourceEndpoint, IContentTransformerRunner, IDestinationContentReferenceFinderFactory)
Creates a new EndpointContentItemPreparer<TContent, TPublish> object.
Declaration
public EndpointContentItemPreparer(ISourceEndpoint source, IContentTransformerRunner transformerRunner, IDestinationContentReferenceFinderFactory destinationFinderFactory)
Parameters
Type | Name | Description |
---|---|---|
ISourceEndpoint | source | The source endpoint. |
IContentTransformerRunner | transformerRunner | |
IDestinationContentReferenceFinderFactory | destinationFinderFactory |
Methods
PullAsync(ContentMigrationItem<TContent>, CancellationToken)
Pulls any additional information needed to prepare/publish a content item.
Declaration
protected override Task<IResult<TPublish>> 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<TPublish>> | The item to use for publishing. |