Scavenging in Entlib Silverlight

Topics: Silverlight Integration Pack
Feb 1, 2012 at 3:34 PM


I'm new to Entlib Silverlight Integration Pack.

I know that there is a CacheItemPolicy NotRemovable priority, but i wonder, is it possible that we access the ScavengerScheduler ? Also is there an event raise when the scavenger scheduler cycle start working ?


Thanks in advance

Feb 3, 2012 at 2:01 AM

There is a performance counter recording the number of items scavenged but not when the scavenger starts.

I don't think there is a way of accessing the ScavengerTask or BackgroundScheduler.

What are you trying to accomplish?  Perhaps there is a way to do what you want?

Because the TypeResolvers resolve on the concrete types you can't inject your own functionality into the typical entlib configuration scenario.  You could work with the entilib classes directly (e.g. CacheManager) and supply your own ScavengerTask or BackgroundScheduler functionality.

Randy Levy
Enterprise Library support engineer