Method Add
Add(CacheDependency[])
Adds an array of CacheDependency objects to the AggregateCacheDependency object.
Declaration
public void Add(params CacheDependency[] dependencies)
Parameters
Type | Name | Description |
---|---|---|
CacheDependency[] | dependencies | The array of CacheDependency objects to add. |
Examples
The following example aggregates File Dependency and Key Dependency.
AggregateCacheDependency aggregateDependency = new AggregateCacheDependency();
aggregateDependency.Add(new FileDependency(filepath), new KeyDependency(key));