Interface IContentReferenceCacheLoadAttempt<TContent>
Thread-safe interface representing an attempt to load a IContentReferenceCache during a cache miss.
Namespace: Tableau.Migration.Content.Search
Assembly: Tableau.Migration.dll
Syntax
public interface IContentReferenceCacheLoadAttempt<TContent> where TContent : IContentReference
Type Parameters
| Name | Description |
|---|---|
| TContent |
Methods
IsItemLoaded()
Finds whether the currently searched item is currently found in the cache.
Declaration
bool IsItemLoaded()
Returns
| Type | Description |
|---|---|
| bool | True if the searched item is currently in the cache, otherwise false. |
LoadAllAsync(CancellationToken)
Performs an eager load according to the re-load rules of the cache, opportunistically loading all items.
Declaration
ValueTask LoadAllAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey |
Returns
| Type | Description |
|---|---|
| ValueTask | The task to await. |
LoadItemAsync(CancellationToken)
Performs an individual item load based on the current search key, when supported, and opportunistically loading items when available.
Declaration
ValueTask<ContentReferenceLoadResult<TContent>> LoadItemAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey |
Returns
| Type | Description |
|---|---|
| ValueTask<ContentReferenceLoadResult<TContent>> | The result of the individual item load, which possibly might have been skipped due to the search mode not being supported. |