/// <inheritdoc />
 public Task <PinResult> PinAsync(Context context, ContentHash contentHash, CancellationToken cts, UrgencyHint urgencyHint)
 {
     return(_innerCacheSession.PinAsync(context, contentHash, cts, urgencyHint));
 }
예제 #2
0
        /// <inheritdoc />
        public async Task <Possible <string, Failure> > PinToCasAsync(CasHash hash, UrgencyHint urgencyHint, Guid activityId)
        {
            var result = await ReadOnlyCacheSession.PinAsync(new Context(Logger), hash.ToMemoization(), CancellationToken.None);

            return(result.FromMemoization(hash, CacheId));
        }