Interface IWebPageLinkedItemsDependencyAsyncRetriever
Interface for retrieving linked content item of web pages.
public interface IWebPageLinkedItemsDependencyAsyncRetriever
- Extension Methods
Methods
Get(IEnumerable<int>, int, CancellationToken)
Gets cache dependency keys of linked content items for given web page up to a given level.
Task<IEnumerable<string>> Get(IEnumerable<int> webPageIds, int maxLevel, CancellationToken cancellationToken = default)
Parameters
webPageIdsIEnumerable<int>Collection of IDs of the web pages for which the cache dependency keys are retrieved.
maxLevelintSpecifies the maximum level of linked items to include. If the value is negative or zero, only the linked items from the first level are retrieved.
cancellationTokenCancellationTokenCancellation instruction.
Returns
- Task<IEnumerable<string>>
Get(int, int, CancellationToken)
Gets cache dependency keys of linked content items for given web page up to a given level.
Task<IEnumerable<string>> Get(int webPageId, int maxLevel, CancellationToken cancellationToken = default)
Parameters
webPageIdintID of the web page for which the cache dependency keys are retrieved.
maxLevelintSpecifies the maximum level of linked items to include. If the value is negative or zero, only the linked items from the first level are retrieved.
cancellationTokenCancellationTokenCancellation instruction.
Returns
- Task<IEnumerable<string>>