PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​CachingCaching­Services
Open sandboxFocus

CachingServices Class

The entry point to configure PostSharp.Patterns.Caching at run-time.

Inheritance
CachingServices
Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public static class CachingServices : Object

Properties

Name Description
CurrentContext

Gets the current caching context, so dependencies can be added.

DefaultBackend

Gets or sets the default CachingBackend, i.e. the physical storage of cache items.

DefaultKeyBuilder

Gets or sets the CacheKeyBuilder used to generate caching keys, i.e. to serialize objects into a String.

Profiles

Gets the repository of caching profiles (CachingProfile).

Methods

Name Description
SuspendDependencyPropagation()

Temporarily suspends propagation of dependencies from subsequently called methods to the caller method.