CacheEntryExtensions.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(ICacheEntry, PostEvictionDelegate) |
Fires the given callback after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate, Object) |
Fires the given callback after the cache entry is evicted from the cache. |
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate)
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
Fires the given callback after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function RegisterPostEvictionCallback (entry As ICacheEntry, callback As PostEvictionDelegate) As ICacheEntry
Parameters
- entry
- ICacheEntry
The ICacheEntry.
- callback
- PostEvictionDelegate
The callback to run after the entry is evicted.
Returns
The ICacheEntry for chaining.
Applies to
RegisterPostEvictionCallback(ICacheEntry, PostEvictionDelegate, Object)
- Source:
- CacheEntryExtensions.cs
- Source:
- CacheEntryExtensions.cs
Fires the given callback after the cache entry is evicted from the cache.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ RegisterPostEvictionCallback(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, Microsoft::Extensions::Caching::Memory::PostEvictionDelegate ^ callback, System::Object ^ state);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry RegisterPostEvictionCallback (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, Microsoft.Extensions.Caching.Memory.PostEvictionDelegate callback, object? state);
static member RegisterPostEvictionCallback : Microsoft.Extensions.Caching.Memory.ICacheEntry * Microsoft.Extensions.Caching.Memory.PostEvictionDelegate * obj -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function RegisterPostEvictionCallback (entry As ICacheEntry, callback As PostEvictionDelegate, state As Object) As ICacheEntry
Parameters
- entry
- ICacheEntry
The ICacheEntry.
- callback
- PostEvictionDelegate
The callback to run after the entry is evicted.
- state
- Object
The state to pass to the post-eviction callback.
Returns
The ICacheEntry for chaining.