Пример #1
0
            public void StopReminder(Logger Logger)
            {
                if (Timer != null)
                {
                    Timer.Dispose();
                }

                Timer = null;
            }
Пример #2
0
        private void StartTimer()
        {
            if (timer != null)
                timer.Dispose();

            timer = GrainTimer.FromTimerCallback(
                this.RuntimeClient.Scheduler,
                this.OnGossipTimerTick,
                null,
                this.backgroundGossipInterval,
                this.backgroundGossipInterval,
                "MultiCluster.GossipTimer");

            timer.Start();
        }