Interface ILockedProjectCache
Interface for an object that contains information on projects that are locked.
Namespace: Tableau.Migration.Engine.Endpoints.Search
Assembly: Tableau.Migration.dll
Syntax
public interface ILockedProjectCache
Methods
IsProjectLockedAsync(Guid, CancellationToken, bool)
Finds whether a project is locked.
Declaration
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. |
UpdateLockedProjectCache(IProject)
Updates the locked project cache with the given project information.
Declaration
void UpdateLockedProjectCache(IProject project)
Parameters
Type | Name | Description |
---|---|---|
IProject | project | The project to update the cache for. |