Пример #1
0
        public TransactionCoordinator()
        {
            _settings = new TransactionSettings(Context.System.Settings.Config.GetConfig("akka.akka-cqrs"));

            // set inactivity timeout to be able to send rollback to transaction participants
            SetReceiveTimeout(_settings.TransactionTimeout);

            _currentTransactionId = Guid.Empty;
            _participants         = new HashSet <IActorRef> {
            };
            Become(Ready);
        }
        public TransactionCoordinator()
        {
            _settings = new TransactionSettings(Context.System.Settings.Config.GetConfig("akka.akka-cqrs"));

            // set inactivity timeout to be able to send rollback to transaction participants
            SetReceiveTimeout(_settings.TransactionTimeout);

            _currentTransactionId = Guid.Empty;
            _participants = new HashSet<IActorRef> { };
            Become(Ready);
        }