Example #1
0
    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;
    }
Example #2
0
    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;
    }