[Mono-bugs] [Bug 433483] Cache/CacheDependency's behaviour different from .NET' s implementation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 9 18:31:12 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=433483

User mhabersack at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=433483#c3





--- Comment #3 from Marek Habersack <mhabersack at novell.com>  2008-10-09 16:31:11 MDT ---
How about modifying CacheDependency in two ways - first, maintain an internal
list of CacheItems which depend on this particular instance of CacheDependency
(Cache.Insert would call CacheDependency.AddItem () for instance) and extending
the CacheDependency.DependencyChanged event to pass that list to the handler.
That way, Cache.OnDependencyChanged would know which items exactly are to be
removed. If the list passed to the handler would be null, we'd call
CheckDependencies directly. It would eliminate using CheckDependencies in most
cases. Does that make sense?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list