Interface IContentReferenceCache
Interface for an object that can efficiently cache IContentReference objects for a given endpoint and content type.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentReferenceCache
  Remarks
Implementations should be thread safe due to parallel migration processing.
Methods
ForIdAsync(Guid, CancellationToken)
Finds the content reference item for a given endpoint ID.
Declaration
Task<IContentReference?> ForIdAsync(Guid id, CancellationToken cancel)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Guid | id | The ID.  | 
      
| CancellationToken | cancel | The cancellation token to obey.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<IContentReference> | The content reference, or null if no item was found.  | 
      
ForLocationAsync(ContentLocation, CancellationToken)
Finds the content reference item for a given endpoint location.
Declaration
Task<IContentReference?> ForLocationAsync(ContentLocation location, CancellationToken cancel)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ContentLocation | location | The location.  | 
      
| CancellationToken | cancel | The cancellation token to obey.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<IContentReference> | The content reference, or null if no item was found.  | 
      
GetAllAsync(CancellationToken)
Finds all available content references.
Declaration
Task<IImmutableList<IContentReference>> GetAllAsync(CancellationToken cancel)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<IImmutableList<IContentReference>> | The found content references.  |