Class OwnershipTransformer<TContent>
Transformer that maps the user for a content item owner.
Inheritance
object
OwnershipTransformer<TContent>
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class OwnershipTransformer<TContent> : IContentTransformer<TContent>, IMigrationHook<TContent> where TContent : IWithOwner
Type Parameters
| Name | Description |
|---|---|
| TContent |
Constructors
OwnershipTransformer(IMappedUserTransformer)
Creates a new OwnershipTransformer<TContent> object.
Declaration
public OwnershipTransformer(IMappedUserTransformer userTransformer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMappedUserTransformer | userTransformer | The user transformer. |
Methods
ExecuteAsync(TContent, CancellationToken)
Executes a hook callback.
Declaration
public Task<TContent?> ExecuteAsync(TContent ctx, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| TContent | ctx | The input context from the migration engine or previous hook. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<TContent> | 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 |