PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Caching Namespace/ICaching­Context Interface/ICaching­Context Methods/ICaching­Context.​Add­Dependency Method/ICaching­Context.​Add­Dependency Method (Object)

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

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
void AddDependency(
	Object dependency
)

Parameters

dependency
Type: System.Object
A dependency object.
See Also