Пример #1
0
        /// <summary>
        /// Executes this instance.
        /// </summary>
        /// <param name="message"></param>
        public override void Execute(Message message)
        {
            StreakTypeService.RebuildStreakType(null, message.StreakTypeId, out var errorMessage);

            if (!errorMessage.IsNullOrWhiteSpace())
            {
                ExceptionLogService.LogException(errorMessage);
            }
        }
Пример #2
0
        /// <summary>
        /// Executes this instance.
        /// </summary>
        public void Execute()
        {
            ReportProgress(0);
            StreakTypeService.RebuildStreakType(Progress, StreakTypeId, out var errorMessage);

            if (!errorMessage.IsNullOrWhiteSpace())
            {
                ExceptionLogService.LogException(errorMessage);
            }

            ReportProgress(100);
        }