Class ContentMappingContext<TContent>
Context for IContentMapping<TContent> operations mapping a content item to an intended destination location for publishing and content references.
Namespace: Tableau.Migration.Engine.Hooks.Mappings
Assembly: Tableau.Migration.dll
Syntax
public class ContentMappingContext<TContent>
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
ContentMappingContext(TContent, ContentLocation)
Creates a new ContentMappingContext<TContent> object.
Declaration
public ContentMappingContext(TContent contentItem, ContentLocation mappedLocation)
Parameters
Type | Name | Description |
---|---|---|
TContent | contentItem | The content item being mapped. |
ContentLocation | mappedLocation | The destination location to map to. |
Properties
ContentItem
Gets the content item being mapped.
Declaration
public TContent ContentItem { get; }
Property Value
Type | Description |
---|---|
TContent |
MappedLocation
Gets the destination location the content item will be mapped and/or published to.
Declaration
public ContentLocation MappedLocation { get; }
Property Value
Type | Description |
---|---|
ContentLocation |
Methods
MapTo(ContentLocation)
Maps the content item to a new destination location.
Declaration
public ContentMappingContext<TContent> MapTo(ContentLocation mappedLocation)
Parameters
Type | Name | Description |
---|---|---|
ContentLocation | mappedLocation | The destination location to map to. |
Returns
Type | Description |
---|---|
ContentMappingContext<TContent> | A new context for the content item with the mapped location. |
ToTask()
Creates a task that's successfully completed from the current context.
Declaration
public Task<ContentMappingContext<TContent>?> ToTask()
Returns
Type | Description |
---|---|
Task<ContentMappingContext<TContent>> | The successfully completed task. |