Exemplo n.º 1
0
 /// <summary>
 /// Create an instance and start polling the configuration source
 /// </summary>
 /// <param name="config">Configuration to delegate to</param>
 /// <param name="source"><see cref="IPolledConfigurationSource"/> to poll get new/changed properties</param>
 /// <param name="scheduler"><see cref="AbstractPollingScheduler"/> to provide the polling schedule</param>
 public ConfigurationWithPollingSource(IConfiguration config, IPolledConfigurationSource source, AbstractPollingScheduler scheduler)
 {
     m_Config    = config;
     m_Scheduler = scheduler;
     scheduler.StartPolling(source, this);
 }
 /// <summary>
 /// Create an instance and start polling the configuration source
 /// </summary>
 /// <param name="config">Configuration to delegate to</param>
 /// <param name="source"><see cref="IPolledConfigurationSource"/> to poll get new/changed properties</param>
 /// <param name="scheduler"><see cref="AbstractPollingScheduler"/> to provide the polling schedule</param>
 public ConfigurationWithPollingSource(IConfiguration config, IPolledConfigurationSource source, AbstractPollingScheduler scheduler)
 {
     m_Config = config;
     m_Scheduler = scheduler;
     scheduler.StartPolling(source, this);
 }