Class ContentItemPostPublishHookBase<TPublish, TResult>
Base class for IContentItemPostPublishHook<TPublish, TResult> implementations.
Inheritance
ContentItemPostPublishHookBase<TPublish, TResult>
Implements
IContentItemPostPublishHook<TPublish, TResult>
IMigrationHook<ContentItemPostPublishContext<TPublish, TResult>>
Namespace: Tableau.Migration.Engine.Hooks.PostPublish
Assembly: Tableau.Migration.dll
Syntax
public abstract class ContentItemPostPublishHookBase<TPublish, TResult> : IContentItemPostPublishHook<TPublish, TResult>, IMigrationHook<ContentItemPostPublishContext<TPublish, TResult>>
Type Parameters
Name | Description |
---|---|
TPublish | |
TResult |
Methods
ExecuteAsync(ContentItemPostPublishContext<TPublish, TResult>, CancellationToken)
Executes a hook callback.
Declaration
public abstract Task<ContentItemPostPublishContext<TPublish, TResult>?> ExecuteAsync(ContentItemPostPublishContext<TPublish, TResult> ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentItemPostPublishContext<TPublish, TResult> | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<ContentItemPostPublishContext<TPublish, TResult>> | 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 |