ConfigurationChangeWatcher.Poller()

Topics: Building and extending application blocks, Enterprise Library Core, General discussion
Sep 24, 2009 at 6:25 PM

When I profile my application , it seems that 60% of the time is spent in the method:

Microsoft.Practices.EnterpriseLibrary.Configuration.Storage.ConfigurationChangeWatcher.Poller()

From what I can gather this method should only be invoked every 15 seconds so I find it hard to believe that it is actually taking up that much time.

Does anyone know how i can reduce the frequency that this method is called?

 

Thanks.

 

 

Sep 24, 2009 at 7:47 PM

Actually I have a feeling that the method just loops with a sleep inside of it or a loop with a wait inside of it.

I cannot find the source code for this so would still like that confirmed if anyone can.

Sep 25, 2009 at 2:12 AM

It's in the Common project under Core solution folder (Common/Configuration/Storage/ConfigurationChangeWatcher). Change the default value of the defaultPollDelayInMilliseconds.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com