Class ProjectPostPublishHook
Project content migration completed hook.
Inheritance
object
ProjectPostPublishHook
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.PostPublish.Default
Assembly: Tableau.Migration.dll
Syntax
public class ProjectPostPublishHook : PermissionPostPublishHookBase<IProject, IProject>, IContentItemPostPublishHook<IProject, IProject>, IMigrationHook<ContentItemPostPublishContext<IProject, IProject>>
Constructors
ProjectPostPublishHook(IMigration, IContentTransformerRunner)
Creates a new ProjectPostPublishHook object.
Declaration
public ProjectPostPublishHook(IMigration migration, IContentTransformerRunner transformerRunner)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigration | migration | The current migration.A transformer runner to use for permissions. |
| IContentTransformerRunner | transformerRunner | The current migration.A transformer runner to use for permissions. |
Methods
ExecuteAsync(ContentItemPostPublishContext<IProject, IProject>, CancellationToken)
Executes a hook callback.
Declaration
public override Task<ContentItemPostPublishContext<IProject, IProject>?> ExecuteAsync(ContentItemPostPublishContext<IProject, IProject> ctx, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentItemPostPublishContext<IProject, IProject> | ctx | The input context from the migration engine or previous hook. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<ContentItemPostPublishContext<IProject, IProject>> | A task to await containing the context,
potentially modified to pass on to the next hook or migration engine,
or null to continue passing the same context as |