override protected void Construct() { base.Construct(); // take an initial sample at starting location TakeSample(null); // take samples at refgular intervals _timer = Kernel.Factory.NewPeriodicTimer(System.TimeSpan.FromSeconds(SampleTime)); _timer.Elapsed += TakeSample; }
protected override void Construct() { base.Construct(); // take an initial sample at starting location TakeSample (null); // take samples at refgular intervals _timer = Kernel.Factory.NewPeriodicTimer(System.TimeSpan.FromSeconds(SampleTime)); _timer.Elapsed += TakeSample; }