Open sandboxFocus

Method AddDependency

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.