Class EmbeddedCredentialsItemPostPublishHook<TPublish, TResult>
Embedded credential content post publish hook.
Inheritance
object
ContentItemPostPublishHookBase<TPublish, TResult>
EmbeddedCredentialsItemPostPublishHook<TPublish, TResult>
Implements
IContentItemPostPublishHook<TPublish, TResult>
IMigrationHook<ContentItemPostPublishContext<TPublish, TResult>>
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.PostPublish.Default
Assembly: Tableau.Migration.dll
Syntax
public class EmbeddedCredentialsItemPostPublishHook<TPublish, TResult> : ContentItemPostPublishHookBase<TPublish, TResult>, IContentItemPostPublishHook<TPublish, TResult>, IMigrationHook<ContentItemPostPublishContext<TPublish, TResult>> where TPublish : IRequiresEmbeddedCredentialMigration, IContentReference, IConnectionsContent where TResult : IWithEmbeddedCredentials
Type Parameters
| Name | Description |
|---|---|
| TPublish | |
| TResult |
Constructors
EmbeddedCredentialsItemPostPublishHook(IMigration, IDestinationContentReferenceFinderFactory, IUserSavedCredentialsCache, ILoggerFactory, ISharedResourcesLocalizer, IMigrationCapabilities)
Creates a new EmbeddedCredentialsItemPostPublishHook<TPublish, TResult> object.
Declaration
public EmbeddedCredentialsItemPostPublishHook(IMigration migration, IDestinationContentReferenceFinderFactory destinationFinderFactory, IUserSavedCredentialsCache userSavedCredentialsCache, ILoggerFactory loggerFactory, ISharedResourcesLocalizer sharedResourcesLocalizer, IMigrationCapabilities migrationCapabilities)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigration | migration | The current migration. |
| IDestinationContentReferenceFinderFactory | destinationFinderFactory | The destination content reference finder factory. |
| IUserSavedCredentialsCache | userSavedCredentialsCache | The cache for user saved credentials. |
| ILoggerFactory | loggerFactory | The logger factory. |
| ISharedResourcesLocalizer | sharedResourcesLocalizer | |
| IMigrationCapabilities | migrationCapabilities | The migration capabilities. |
Methods
ExecuteAsync(ContentItemPostPublishContext<TPublish, TResult>, CancellationToken)
Executes a hook callback.
Declaration
public override 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 |