PostSharpAPI ReferencePost­Sharp.​Patterns.​CachingICaching­ContextAdd­Dependencies
Open sandboxFocus

ICachingContext.AddDependencies Method

AddDependencies(IEnumerable<String>)

Adds a set of dependencies represented as keys to the current context.

Declaration
void AddDependencies(IEnumerable<string> dependencies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> dependencies

A set of dependency keys.

AddDependencies(IEnumerable<ICacheDependency>)

Adds a set of dependencies represented as ICacheDependency to the current context.

Declaration
void AddDependencies(IEnumerable<ICacheDependency> dependencies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ICacheDependency> dependencies

A set of ICacheDependency.