Пример #1
0
        private void HandleActivation(StartCounting message)
        {
            _originalDuration = message.Duration;
            _timeLeft         = message.Duration;
            _interval         = message.NotificationInterval;

            _cancelRequest = Context.System.Scheduler.ScheduleTellRepeatedlyCancelable(message.Wait, message.NotificationInterval, Self, new Tick(), Sender);
        }
Пример #2
0
        public static void StartCalorieCounter()
        {
            StartCounting?.Invoke();

            return;
        }