PostSharpAPI ReferencePost­Sharp.​Patterns.​CachingICaching­Context
Open sandboxFocus

ICachingContext Interface

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.