Пример #1
0
        public async Task ExecuteAsync(CancellationToken cancellationToken)
        {
            if (ShouldRun == false)
            {
                return;
            }

            await ScheduledTask.ExecuteAsync(cancellationToken);

            SetNextRunTime();
        }