Interface IContentReferenceStore<TContent>
Interface for an object that can provide data for a IContentReferenceCache.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentReferenceStore<TContent> where TContent : IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent | The content type. |
Methods
LoadAllAsync(CancellationToken)
Loads all items.
Declaration
ValueTask<IImmutableList<TContent>> LoadAllAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| ValueTask<IImmutableList<TContent>> | The content references to cache. |
LoadAsync(Guid, CancellationToken)
Loads content at the given ID, possibly returning more references to opportunistically cache.
Declaration
ValueTask<ContentReferenceLoadResult<TContent>> LoadAsync(Guid searchId, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | searchId | The primary ID to search for. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| ValueTask<ContentReferenceLoadResult<TContent>> | The content references to cache, or an unsupported result. |
LoadAsync(string, CancellationToken)
Loads content at the given content URL, possibly returning more references to opportunistically cache.
Declaration
ValueTask<ContentReferenceLoadResult<TContent>> LoadAsync(string searchContentUrl, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| string | searchContentUrl | The primary content URL to search for. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| ValueTask<ContentReferenceLoadResult<TContent>> | The content references to cache, or an unsupported result. |
LoadAsync(ContentLocation, CancellationToken)
Loads content at the given location, possibly returning more locations to opportunistically cache.
Declaration
ValueTask<ContentReferenceLoadResult<TContent>> LoadAsync(ContentLocation searchLocation, CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentLocation | searchLocation | The primary location to search for. |
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| ValueTask<ContentReferenceLoadResult<TContent>> | The content references to cache, or an unsupported result. |