Deila með


MemoryCacheEntryExtensions.RegisterPostEvictionCallback Method

Definition

Overloads

RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate)

Fires the given callback after the cache entry is evicted from the cache.

RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object)

Fires the given callback after the cache entry is evicted from the cache.

RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate)

Source:
MemoryCacheEntryExtensions.cs
Source:
MemoryCacheEntryExtensions.cs
Source:
MemoryCacheEntryExtensions.cs

Fires the given callback 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

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)

Source:
MemoryCacheEntryExtensions.cs
Source:
MemoryCacheEntryExtensions.cs
Source:
MemoryCacheEntryExtensions.cs

Fires the given callback 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);
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

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