Class TableauCloudUsernameMapping
Default ITableauCloudUsernameMapping implementation.
Implements
Namespace: Tableau.Migration.Engine.Hooks.Mappings.Default
Assembly: Tableau.Migration.dll
Syntax
public class TableauCloudUsernameMapping : ITableauCloudUsernameMapping, IContentMapping<IUser>, IMigrationHook<ContentMappingContext<IUser>>
Constructors
TableauCloudUsernameMapping(IMigrationPlanOptionsProvider<TableauCloudUsernameMappingOptions>)
Creates a new TableauCloudUsernameMapping object.
Declaration
public TableauCloudUsernameMapping(IMigrationPlanOptionsProvider<TableauCloudUsernameMappingOptions> optionsProvider)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPlanOptionsProvider<TableauCloudUsernameMappingOptions> | optionsProvider | The options provider. |
Methods
ExecuteAsync(ContentMappingContext<IUser>, CancellationToken)
Executes a hook callback.
Declaration
public Task<ContentMappingContext<IUser>?> ExecuteAsync(ContentMappingContext<IUser> ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
ContentMappingContext<IUser> | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<ContentMappingContext<IUser>> | 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 |