Class MappedUserTransformer
Transformer that maps the user for a content item owner.
Implements
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class MappedUserTransformer : IMappedUserTransformer, IUserReferenceTransformer, IContentTransformer<IContentReference>, IMigrationHook<IContentReference>
Constructors
MappedUserTransformer(IDestinationContentReferenceFinderFactory, ILogger<MappedUserTransformer>, ISharedResourcesLocalizer)
Creates a new MappedUserTransformer object.
Declaration
public MappedUserTransformer(IDestinationContentReferenceFinderFactory destinationFinderFactory, ILogger<MappedUserTransformer> logger, ISharedResourcesLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IDestinationContentReferenceFinderFactory | destinationFinderFactory | The destination finder factory. |
ILogger<MappedUserTransformer> | logger | The logger used to log messages. |
ISharedResourcesLocalizer | localizer | The string localizer. |
Methods
ExecuteAsync(IContentReference, CancellationToken)
Executes a hook callback.
Declaration
public Task<IContentReference?> ExecuteAsync(IContentReference ctx, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
IContentReference | ctx | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<IContentReference> | 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 |