MemoryCacheEntryExtensions.RegisterPostEvictionCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate) |
The given callback will be fired after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object) |
The given callback will be fired after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate)
The given callback will be fired after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function RegisterPostEvictionCallback (options As MemoryCacheEntryOptions, callback As PostEvictionDelegate) As MemoryCacheEntryOptions
Parameters
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
The callback to register for calling after an entry is evicted.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object)
The given callback will be fired after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback, System::Object ^ state);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback, object state);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback, object? state);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate * obj -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function RegisterPostEvictionCallback (options As MemoryCacheEntryOptions, callback As PostEvictionDelegate, state As Object) As MemoryCacheEntryOptions
Parameters
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
The callback to register for calling after an entry is evicted.
- state
- Object
The state to pass to the callback.
Returns
The MemoryCacheEntryOptions so that additional calls can be chained.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för