Class BulkDestinationProjectCache
BulkDestinationCache<TContent> implementation that tracks locked projects.
Inheritance
BulkDestinationProjectCache
Inherited Members
Namespace: Tableau.Migration.Engine.Endpoints.Search
Assembly: Tableau.Migration.dll
Syntax
public class BulkDestinationProjectCache : BulkDestinationCache<IProject>, IContentReferenceCache, ILockedProjectCache
Constructors
BulkDestinationProjectCache(IDestinationEndpoint, IConfigReader, IMigrationManifestEditor)
Creates a new BulkDestinationProjectCache object.
Declaration
public BulkDestinationProjectCache(IDestinationEndpoint endpoint, IConfigReader configReader, IMigrationManifestEditor manifest)
Parameters
Type | Name | Description |
---|---|---|
IDestinationEndpoint | endpoint | The destination endpoint. |
IConfigReader | configReader | The configuration reader. |
IMigrationManifestEditor | manifest | The migration manifest. |
Methods
IsProjectLockedAsync(Guid, CancellationToken, bool)
Finds whether a project is locked.
Declaration
public Task<bool> IsProjectLockedAsync(Guid id, CancellationToken cancel, bool includeWithoutNested = true)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | The ID of the project. |
CancellationToken | cancel | The cancellation token to obey. |
bool | includeWithoutNested | Whether or not to consider LockedToProjectWithoutNested as locked. Except for narrow special cases this is true. |
Returns
Type | Description |
---|---|
Task<bool> | True if the project is locked; false if the project is not locked or not found. |
ItemLoaded(IProject)
Called after an item is loaded into the cache from the store.
Declaration
protected override void ItemLoaded(IProject item)
Parameters
Type | Name | Description |
---|---|---|
IProject | item | The item that was loaded. |
Overrides
UpdateLockedProjectCache(IProject)
Updates the locked project cache with the given project information.
Declaration
public void UpdateLockedProjectCache(IProject project)
Parameters
Type | Name | Description |
---|---|---|
IProject | project | The project to update the cache for. |