PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Caching Namespace/ICaching­Context Interface

ICachingContext Interface

Represents the context in which a method being cached is executing.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public interface ICachingContext

The ICachingContext type exposes the following members.

Properties
  NameDescription
Public propertyKind
Gets the kind of ICachingContext.
Public propertyParent
Gets the parent context.
Methods
  NameDescription
Public methodAddDependencies(IEnumerable<String>)
Adds a set of dependencies represented as keys to the current context.
Public methodAddDependencies(IEnumerable<ICacheDependency>)
Adds a set of dependencies represented as ICacheDependency to the current context.
Public methodAddDependency(Object)
Adds a dependency Object the current context. Calling this method is equivalent to wrapping the Object into an ObjectDependency and calling the AddDependency(ICacheDependency) overload.
Public methodAddDependency(String)
Adds a dependency represented as a key to the current context.
Public methodAddDependency(ICacheDependency)
Adds a dependency represented as an ICacheDependency to the current context.
See Also