Class CustomViewDefaultUsersPostPublishHook
Hook that updates a custom view's default users after publish.
Inheritance
object
CustomViewDefaultUsersPostPublishHook
Implements
Namespace: Tableau.Migration.Engine.Hooks.PostPublish.Default
Assembly: Tableau.Migration.dll
Syntax
public class CustomViewDefaultUsersPostPublishHook : ContentItemPostPublishHookBase<IPublishableCustomView, ICustomView>, IContentItemPostPublishHook<IPublishableCustomView, ICustomView>, IMigrationHook<ContentItemPostPublishContext<IPublishableCustomView, ICustomView>>
Constructors
CustomViewDefaultUsersPostPublishHook(IMigration)
Creates a new CustomViewDefaultUsersPostPublishHook object.
Declaration
public CustomViewDefaultUsersPostPublishHook(IMigration migration)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigration | migration | The current migration. |
Methods
ExecuteAsync(ContentItemPostPublishContext<IPublishableCustomView, ICustomView>, CancellationToken)
Executes a hook callback.
Declaration
public override Task<ContentItemPostPublishContext<IPublishableCustomView, ICustomView>?> ExecuteAsync(ContentItemPostPublishContext<IPublishableCustomView, ICustomView> ctx, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentItemPostPublishContext<IPublishableCustomView, ICustomView> | ctx | The input context from the migration engine or previous hook. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<ContentItemPostPublishContext<IPublishableCustomView, ICustomView>> | 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 |