1 instantiation of HybridCacheEntryContext
Microsoft.Extensions.Caching.Abstractions (1)
Hybrid\HybridCache.cs (1)
165
var context = new
HybridCacheEntryContext
(packed.Options);
21 references to HybridCacheEntryContext
Microsoft.Extensions.Caching.Abstractions (21)
Hybrid\HybridCache.cs (18)
139
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
145
Func<TState,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
165
var
context = new HybridCacheEntryContext(packed.Options);
222
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
228
Func<
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
238
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
245
Func<
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
258
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
266
Func<TState,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
277
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
284
Func<
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
298
/// <param name="factory">Provides the underlying data service if the data is not available in the cache. The <see cref="
HybridCacheEntryContext
"/> passed to the factory allows it to influence cache entry options based on the result.</param>
306
Func<TState,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory,
325
public static readonly Func<Func<
HybridCacheEntryContext
, CancellationToken, ValueTask<T>>,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> Instance =
332
public readonly Func<TState,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> Factory;
336
public
HybridCacheEntryContext
? Context;
338
public DefaultImplState(TState state, Func<TState,
HybridCacheEntryContext
, CancellationToken, ValueTask<T>> factory, HybridCacheEntryOptions? options)
Hybrid\HybridCacheEntryContext.cs (1)
22
/// Initializes a new instance of the <see cref="
HybridCacheEntryContext
"/> class, seeding its values from
Hybrid\HybridCacheEntryOptions.cs (2)
17
/// <see cref="HybridCache.GetOrCreateAsync{TState, T}(string, TState, Func{TState,
HybridCacheEntryContext
, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask{T}}, HybridCacheEntryOptions?, System.Collections.Generic.IEnumerable{string}?, System.Threading.CancellationToken)"/>
18
/// overloads, whose factory callback receives a mutable <see cref="
HybridCacheEntryContext
"/>.