Class ServerSubscriptionFilter
Migration filter that skips server subscriptions for workbook or view content types if the destination content reference cannot be found, based on the same logic used in ServerSubscriptionTransformer.
Inheritance
object
ServerSubscriptionFilter
Implements
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Filters.Default
Assembly: Tableau.Migration.dll
Syntax
public sealed class ServerSubscriptionFilter : AsyncContentFilterBase<IServerSubscription>, IContentFilter<IServerSubscription>, IMigrationHook<IEnumerable<ContentMigrationItem<IServerSubscription>>>
Constructors
ServerSubscriptionFilter(IDestinationContentReferenceFinder<IWorkbook>, IDestinationViewReferenceFinder, ISharedResourcesLocalizer, ILogger<IContentFilter<IServerSubscription>>)
Creates a new ServerSubscriptionFilter object.
Declaration
public ServerSubscriptionFilter(IDestinationContentReferenceFinder<IWorkbook> destinationWorkbookFinder, IDestinationViewReferenceFinder destinationViewFinder, ISharedResourcesLocalizer localizer, ILogger<IContentFilter<IServerSubscription>> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| IDestinationContentReferenceFinder<IWorkbook> | destinationWorkbookFinder | The destination workbook finder. |
| IDestinationViewReferenceFinder | destinationViewFinder | The destination view finder. |
| ISharedResourcesLocalizer | localizer | The shared resource localizer. |
| ILogger<IContentFilter<IServerSubscription>> | logger | The logger. |
Methods
ShouldMigrateAsync(ContentMigrationItem<IServerSubscription>, CancellationToken)
Checks if the item should be migrated.
Declaration
public override Task<bool> ShouldMigrateAsync(ContentMigrationItem<IServerSubscription> item, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentMigrationItem<IServerSubscription> | item | The item to evaluate. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<bool> | True if the item should be migrated. |