MemoryCacheEntryExtensions.RegisterPostEvictionCallback Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate) |
Dispara o callback dado depois de a entrada da cache ser expulsa da cache. |
| RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object) |
Dispara o callback dado depois de a entrada da cache ser expulsa da cache. |
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate)
Dispara o callback dado depois de a entrada da cache ser expulsa da 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
Parâmetros
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
A chamada de retorno para se registar após uma entrada ser despejada.
Devoluções
Para MemoryCacheEntryOptions que chamadas adicionais possam ser encadeadas.
Aplica-se a
RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object)
Dispara o callback dado depois de a entrada da cache ser expulsa da 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
Parâmetros
- options
- MemoryCacheEntryOptions
- callback
- PostEvictionDelegate
A chamada de retorno para se registar após uma entrada ser despejada.
- state
- Object
O estado a passar para o callback.
Devoluções
Para MemoryCacheEntryOptions que chamadas adicionais possam ser encadeadas.