Open sandboxFocus

Interface ICachingContext

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

Namespace: PostSharp.Patterns.Caching
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface ICachingContext

Properties

Name Description
Kind

Gets the kind of ICachingContext.

Parent

Gets the parent context.

Methods

Name Description
AddDependencies(IEnumerable<ICacheDependency>)

Adds a set of dependencies represented as ICacheDependency to the current context.

AddDependencies(IEnumerable<string>)

Adds a set of dependencies represented as keys to the current context.

AddDependency(ICacheDependency)

Adds a dependency represented as an ICacheDependency to the current context.

AddDependency(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.

AddDependency(string)

Adds a dependency represented as a key to the current context.