Exemple #1
0
        public void Run()
        {
            BeginLogging();

            _log.InfoFormat("Starting application node at {0} UTC-0", DateTime.UtcNow);
            if (_reg.Id == "none")
            {
                _log.Fatal("The application node is not installed!");
                throw new ApplicationNodeNotInstalledException();
            }

            _recurrence.Recur(_updateCycle, DoRecurringTransact, null);
            _running = true;
        }
        public void Start()
        {
            var rnd = GoodSeedRandom.Create();

            _updateCycle.Recur(TimeSpan.FromSeconds(90.0 + (rnd.NextDouble() * 30.0)), Action, null);
        }