Class UserAuthenticationTypeTransformer
Transformer that provides an authentication type for users, defaulting to ServerDefault. See Tableau API Reference for details.
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class UserAuthenticationTypeTransformer : ContentTransformerBase<IUser>, IContentTransformer<IUser>, IMigrationHook<IUser>
Constructors
UserAuthenticationTypeTransformer(IMigrationPlanOptionsProvider<UserAuthenticationTypeTransformerOptions>, ISharedResourcesLocalizer, ILogger<UserAuthenticationTypeTransformer>)
Creates a new UserAuthenticationTypeTransformer object.
Declaration
public UserAuthenticationTypeTransformer(IMigrationPlanOptionsProvider<UserAuthenticationTypeTransformerOptions> optionsProvider, ISharedResourcesLocalizer localizer, ILogger<UserAuthenticationTypeTransformer> logger)
Parameters
Type | Name | Description |
---|---|---|
IMigrationPlanOptionsProvider<UserAuthenticationTypeTransformerOptions> | optionsProvider | The options provider. |
ISharedResourcesLocalizer | localizer | A string localizer. |
ILogger<UserAuthenticationTypeTransformer> | logger | The default logger. |
Methods
TransformAsync(IUser, CancellationToken)
Executes the transformation.
Declaration
public override Task<IUser?> TransformAsync(IUser itemToTransform, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IUser | itemToTransform | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<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 |