Class ContentItemPostPublishContext<TPublish, TResult>
Context for ContentItemPostPublishHookBase<TPublish, TResult> operations for published content items.
Namespace: Tableau.Migration.Engine.Hooks.PostPublish
Assembly: Tableau.Migration.dll
Syntax
public class ContentItemPostPublishContext<TPublish, TResult>
Type Parameters
Name | Description |
---|---|
TPublish | The publish content type. |
TResult | The post-publish result type. |
Constructors
ContentItemPostPublishContext(IMigrationManifestEntryEditor, TPublish, TResult)
Creates a new ContentItemPostPublishContext<TPublish, TResult> object.
Declaration
public ContentItemPostPublishContext(IMigrationManifestEntryEditor manifestEntry, TPublish publishedItem, TResult destinationItem)
Parameters
Type | Name | Description |
---|---|---|
IMigrationManifestEntryEditor | manifestEntry | The manifest entry for the content item. |
TPublish | publishedItem | The content item being published. |
TResult | destinationItem | The returned content item after publishing. |
Properties
DestinationItem
Gets the returned content item after publishing.
Declaration
public TResult DestinationItem { get; }
Property Value
Type | Description |
---|---|
TResult |
ManifestEntry
Gets the manifest entry for the content item.
Declaration
public IMigrationManifestEntryEditor ManifestEntry { get; }
Property Value
Type | Description |
---|---|
IMigrationManifestEntryEditor |
PublishedItem
Gets the content item being published.
Declaration
public TPublish PublishedItem { get; }
Property Value
Type | Description |
---|---|
TPublish |
Methods
ToTask()
Creates a task that's successfully completed from the current context.
Declaration
public Task<ContentItemPostPublishContext<TPublish, TResult>?> ToTask()
Returns
Type | Description |
---|---|
Task<ContentItemPostPublishContext<TPublish, TResult>> | The successfully completed task. |