Пример #1
0
        /// <summary>
        /// This method executes the schedule.
        /// </summary>
        public async Task Execute(CancellationToken token)
        {
            int start = Statistics.ActiveIncrement();

            try
            {
                LastExecuteTime = DateTime.UtcNow;
                await mExecute(this, token);
            }
            finally
            {
                Statistics.ActiveDecrement(start);
            }
        }