Class GroupUsersTransformer
Transformer that maps the users from a given group.
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class GroupUsersTransformer : ContentTransformerBase<IPublishableGroup>, IContentTransformer<IPublishableGroup>, IMigrationHook<IPublishableGroup>
Constructors
GroupUsersTransformer(IDestinationContentReferenceFinderFactory, ISharedResourcesLocalizer, ILogger<GroupUsersTransformer>)
Creates a new GroupUsersTransformer object.
Declaration
public GroupUsersTransformer(IDestinationContentReferenceFinderFactory destinationFinderFactory, ISharedResourcesLocalizer localizer, ILogger<GroupUsersTransformer> logger)
Parameters
Type | Name | Description |
---|---|---|
IDestinationContentReferenceFinderFactory | destinationFinderFactory | The destination finder factory. |
ISharedResourcesLocalizer | localizer | A string localizer. |
ILogger<GroupUsersTransformer> | logger | The logger used to log messages. |
Methods
TransformAsync(IPublishableGroup, CancellationToken)
Executes the transformation.
Declaration
public override Task<IPublishableGroup?> TransformAsync(IPublishableGroup sourceGroup, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IPublishableGroup | sourceGroup | |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IPublishableGroup> | 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 |