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
Example aggregates file dependency and key dependency
AggregateCacheDependency aggregateDependency = new AggregateCacheDependency();
aggregateDependency.Add(new FileDependency(filepath), new KeyDependency(key));