private void TimerTick(object stateInfo = null)
        {
            using (this.container.BeginLifetimeScope())
            {
                var dailyTaskManager = this.container.Resolve<IDailyTaskManager>();

                var operationalDayContext = new OperationalDayContext(DateTime.UtcNow);
                using (var transaction = new TransactionScope(TransactionScopeOption.Suppress))
                {
                    dailyTaskManager.Execute(operationalDayContext);
                    transaction.Complete();
                }
            }
        }
Exemple #2
0
        private void TimerTick(object stateInfo = null)
        {
            using (this.container.BeginLifetimeScope())
            {
                var dailyTaskManager = this.container.Resolve <IDailyTaskManager>();

                var operationalDayContext = new OperationalDayContext(DateTime.UtcNow);
                using (var transaction = new TransactionScope(TransactionScopeOption.Suppress))
                {
                    dailyTaskManager.Execute(operationalDayContext);
                    transaction.Complete();
                }
            }
        }