PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching Namespace / ICaching­Context Interface / ICaching­Context Methods / ICaching­Context.​Add­Dependency Method / ICaching­Context.​Add­Dependency Method (String)

ICachingContext.AddDependency Method (String)

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

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

Parameters

dependency
Type: System.String
A dependency key.
See Also