PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​CachingICaching­ContextAdd­Dependency
Open sandboxFocus

ICachingContext.AddDependency Method

AddDependency(String)

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

Declaration
void AddDependency(string dependency)
Parameters
Type Name Description
String dependency

A dependency key.

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.

Declaration
void AddDependency(object dependency)
Parameters
Type Name Description
Object dependency

A dependency object.

AddDependency(ICacheDependency)

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

Declaration
void AddDependency(ICacheDependency dependency)
Parameters
Type Name Description
ICacheDependency dependency

A dependency.