Class PreviouslyMigratedFilter<TContent>
Migration filter that skips previously migrated content.
Inherited Members
Namespace: Tableau.Migration.Engine.Hooks.Filters.Default
Assembly: Tableau.Migration.dll
Syntax
public class PreviouslyMigratedFilter<TContent> : ContentFilterBase<TContent>, IContentFilter<TContent>, IMigrationHook<IEnumerable<ContentMigrationItem<TContent>>> where TContent : IContentReference
Type Parameters
Name | Description |
---|---|
TContent | The content type. |
Constructors
PreviouslyMigratedFilter(IMigrationInput, IMigrationPlanOptionsProvider<PreviouslyMigratedFilterOptions>, ISharedResourcesLocalizer, ILogger<IContentFilter<TContent>>)
Creates a new PreviouslyMigratedFilter<TContent> object.
Declaration
public PreviouslyMigratedFilter(IMigrationInput input, IMigrationPlanOptionsProvider<PreviouslyMigratedFilterOptions> optionsProvider, ISharedResourcesLocalizer localizer, ILogger<IContentFilter<TContent>> logger)
Parameters
Type | Name | Description |
---|---|---|
IMigrationInput | input | The migration input. |
IMigrationPlanOptionsProvider<PreviouslyMigratedFilterOptions> | optionsProvider | The options provider. |
ISharedResourcesLocalizer | localizer | A string localizer. |
ILogger<IContentFilter<TContent>> | logger | The logger. |
Methods
ShouldMigrate(ContentMigrationItem<TContent>)
Checks if the item should be migrated.
Declaration
public override bool ShouldMigrate(ContentMigrationItem<TContent> item)
Parameters
Type | Name | Description |
---|---|---|
ContentMigrationItem<TContent> | item | The item to evaluate. |
Returns
Type | Description |
---|---|
bool | True if the item should be migrated. |