1
|
I've got a custom cache dependency
It works perfectly, but Im wondering how to make a refresh of all the object in one time. Here I put into cache 2 objects
Its fine, but when c1 will detect change how to force c2 to don't wait 5 seconds to check but I want to call itself DependencyDispose when c1 do it.
In other words, if c1 detects change, c2 also should call DependencyDispose
| ||
add a comment
|
1
|
Maybe you could add a static event which would be fired in your CheckDependencyCallback()-method. In your constructor for the MyCacheDependency you would then attach an eventhandler. When the event is fired you could call NotifyDependencyChanged or DependencyDispose from there. In this way all MyCacheDependency-objects would react to a change.
|
No comments:
Post a Comment