Class CloudScheduleCompatibilityTransformer<TWithSchedule>
Transformer that changes extract refresh tasks to cloud supported ones.
Inheritance
ContentTransformerBase<TWithSchedule>
CloudScheduleCompatibilityTransformer<TWithSchedule>
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Transformers.Default
Assembly: Tableau.Migration.dll
Syntax
public class CloudScheduleCompatibilityTransformer<TWithSchedule> : ContentTransformerBase<TWithSchedule>, IContentTransformer<TWithSchedule>, IMigrationHook<TWithSchedule> where TWithSchedule : IWithSchedule<ICloudSchedule>
Type Parameters
Name | Description |
---|---|
TWithSchedule |
Constructors
CloudScheduleCompatibilityTransformer(ISharedResourcesLocalizer, ILogger<CloudScheduleCompatibilityTransformer<TWithSchedule>>)
Creates a new CloudScheduleCompatibilityTransformer<TWithSchedule> object.
Declaration
public CloudScheduleCompatibilityTransformer(ISharedResourcesLocalizer localizer, ILogger<CloudScheduleCompatibilityTransformer<TWithSchedule>> logger)
Parameters
Type | Name | Description |
---|---|---|
ISharedResourcesLocalizer | localizer | A string localizer. |
ILogger<CloudScheduleCompatibilityTransformer<TWithSchedule>> | logger | The logger used to log messages. |
Methods
TransformAsync(TWithSchedule, CancellationToken)
Executes the transformation.
Declaration
public override Task<TWithSchedule?> TransformAsync(TWithSchedule itemToTransform, CancellationToken cancel)
Parameters
Type | Name | Description |
---|---|---|
TWithSchedule | itemToTransform | The input context from the migration engine or previous hook. |
CancellationToken | cancel | The cancellation token to obey. |
Returns
Type | Description |
---|---|
Task<TWithSchedule> | 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 |