Class ContentItemPulledHookBase<TPrepare>
Abstract base class for IContentItemPulledHook<TPrepare> hook implementations.
Inheritance
object
ContentItemPulledHookBase<TPrepare>
Namespace: Tableau.Migration.Engine.Hooks.Pulled
Assembly: Tableau.Migration.dll
Syntax
public abstract class ContentItemPulledHookBase<TPrepare> : IContentItemPulledHook<TPrepare>, IMigrationHook<ContentItemPulledContext<TPrepare>> where TPrepare : IContentReference
Type Parameters
| Name | Description |
|---|---|
| TPrepare | The pulled content type. |
Methods
ExecuteAsync(ContentItemPulledContext<TPrepare>, CancellationToken)
Executes a hook callback.
Declaration
public abstract Task<ContentItemPulledContext<TPrepare>?> ExecuteAsync(ContentItemPulledContext<TPrepare> ctx, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentItemPulledContext<TPrepare> | ctx | The input context from the migration engine or previous hook. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<ContentItemPulledContext<TPrepare>> | 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 |