/// <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(); } }
/// <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(); } }