Class CustomViewDefaultUserReferencesTransformer
Transformer that transforms the list of users that have the custom view as default. It sets the references of these users to those at the destination.
Inheritance
CustomViewDefaultUserReferencesTransformer
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class CustomViewDefaultUserReferencesTransformer : ContentTransformerBase<IPublishableCustomView>, IContentTransformer<IPublishableCustomView>, IMigrationHook<IPublishableCustomView>
Constructors
CustomViewDefaultUserReferencesTransformer(IMappedUserTransformer, ILogger<CustomViewDefaultUserReferencesTransformer>, ISharedResourcesLocalizer)
Creates a new CustomViewDefaultUserReferencesTransformer object.
Declaration
public CustomViewDefaultUserReferencesTransformer(IMappedUserTransformer userTransformer, ILogger<CustomViewDefaultUserReferencesTransformer> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IMappedUserTransformer | userTransformer | The user transformer. |
ILogger<CustomViewDefaultUserReferencesTransformer> | logger | The logger used to log messages. |
ISharedResourcesLocalizer | localizer | The string localizer. |
Methods
TransformAsync(IPublishableCustomView, CancellationToken)
Executes the transformation.
Declaration
public override Task<IPublishableCustomView?> TransformAsync(IPublishableCustomView sourceCustomView, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IPublishableCustomView | sourceCustomView | |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IPublishableCustomView> | 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 |