Exemplo n.º 1
0
 /// <summary>
 /// Adds the sampler.
 /// </summary>
 /// <param name="sampler">The sampler.</param>
 public void AddSampler(ISampler sampler)
 {
     _samplers.Add(sampler);
     sampler.MonitoringSender = this;
     if (_stateMachine.CurrentState == MonitorStatus.Started)
     {
         sampler.Start();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the sampler.
 /// </summary>
 /// <param name="sampler">The sampler.</param>
 public void AddSampler(ISampler sampler)
 {
     _samplers.Add(sampler);
     sampler.MonitoringSender = this;
     if (_stateMachine.CurrentState  == MonitorStatus.Started)
     {
         sampler.Start();
     }
 }