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); }
public static void StartCalorieCounter() { StartCounting?.Invoke(); return; }