System.Runtime.Caching.Hosting Namespace

Contém tipos compatíveis com ambientes de hospedagem .NET Framework que usam os recursos de cache no ASP.NET. Contains types that support .NET Framework hosting environments that use the caching features in ASP.NET.

Interfaces

IApplicationIdentifier

Define um identificador para domínios de aplicativo que uma implementação de cache pode usar para interagir com um ambiente de host.Defines an identifier for application domains that a cache implementation can use to interact with a host environment.

IFileChangeNotificationSystem

Define uma maneira de expor um objeto FileChangeMonitor personalizado para uma implementação de cache.Defines a way to expose a custom FileChangeMonitor object to a cache implementation.

IMemoryCacheManager

Define uma interface que um cache usa para comunicar a uso de memória cache para um ambiente de host.Defines an interface that a cache uses in order to communicate cache memory usage to a host environment.

Comentários

A ObjectCache classe base expõe uma Host propriedade estática.The base ObjectCache class exposes a static Host property. Quando um ambiente de hospedagem .NET Framework inicia domínios de aplicativo individuais, ele pode definir uma referência à Host propriedade.When a .NET Framework hosting environment starts individual application domains, it can set a reference to the Host property. Isso permite que o ambiente de hospedagem forneça uma integração melhor com o cache.This enables the hosting environment to provide better integration with the cache.

No .NET Framework 4, o System.Runtime.Caching.Hosting namespace fornece interfaces que um ambiente de hospedagem pode usar para definir uma IServiceProvider referência na Host propriedade.In .NET Framework 4, the System.Runtime.Caching.Hosting namespace provides interfaces that a hosting environment can use to set a IServiceProvider reference on the Host property.