public TimeoutPersisterReceiver(IManageTimeouts timeoutsManager)
        {
            timeoutsManager.TimeoutPushed += TimeoutsManagerOnTimeoutPushed;

            SecondsToSleepBetweenPolls = 1;

            workerThread = new Thread(Poll) { IsBackground = true };
        }
        public TimeoutPersisterReceiver(IManageTimeouts timeoutsManager)
        {
            timeoutsManager.TimeoutPushed += TimeoutsManagerOnTimeoutPushed;

            SecondsToSleepBetweenPolls = 1;

            workerThread = new Thread(Poll)
            {
                IsBackground = true
            };
        }
        public void Setup()
        {
            Address.InitializeLocalAddress("MyEndpoint");

            Configure.GetEndpointNameAction = () => "MyEndpoint";

            messageSender = new FakeMessageSender();
            manager = new DefaultTimeoutManager
                {
                    MessageSender = messageSender,
                };
        }
        public void Setup()
        {
            Address.InitializeLocalAddress("MyEndpoint");

            Configure.GetEndpointNameAction = () => "MyEndpoint";

            messageSender = new FakeMessageSender();
            manager       = new DefaultTimeoutManager
            {
                MessageSender = messageSender,
            };
        }
Beispiel #5
0
        public void MainSetup()
        {
            timeout  = TimeSpan.FromSeconds(1);
            interval = TimeSpan.FromSeconds(2);

            manager = new DefaultTimeoutManager();
            manager.Init(interval);

            manager.SagaTimedOut += (o, e) =>
            {
                sagaIds.Add(e.SagaId);
                eventTime = e.Time;
            };
        }
        public void MainSetup()
        {
            timeout = TimeSpan.FromSeconds(1);
            interval = TimeSpan.FromSeconds(2);

            manager = new DefaultTimeoutManager();
            manager.Init(interval);

            manager.SagaTimedOut += (o, e) =>
            {
                sagaIds.Add(e.SagaId);
                eventTime = e.Time;
            };
        }
Beispiel #7
0
        public void Setup()
        {
            timeout  = TimeSpan.FromSeconds(1);
            interval = TimeSpan.FromSeconds(2);

            manager = new DefaultTimeoutManager();
            manager.Init(interval);

            manager.SagaTimedOut += (o, e) =>
            {
                sagaIds.Add(e.SagaId);
                eventTime = e.Time;
            };

            sagaIds   = new List <Guid>();
            eventTime = DateTime.MinValue;
        }
Beispiel #8
0
        public void Setup()
        {
            Address.InitializeLocalAddress("MyEndpoint");

            Configure.GetEndpointNameAction = () => "MyEndpoint";

            persister     = CreateTimeoutPersister();
            messageSender = new FakeMessageSender();

            manager = new DefaultTimeoutManager
            {
                TimeoutsPersister = persister,
                MessageSender     = messageSender,
            };

            receiver = new TimeoutPersisterReceiver(manager)
            {
                TimeoutsPersister          = persister,
                MessageSender              = messageSender,
                SecondsToSleepBetweenPolls = 1,
            };
        }
        public void Setup()
        {
            Address.InitializeLocalAddress("MyEndpoint");

            Configure.GetEndpointNameAction = () => "MyEndpoint";

            persister = CreateTimeoutPersister();
            messageSender = new FakeMessageSender();

            manager = new DefaultTimeoutManager
                {
                    TimeoutsPersister = persister,
                    MessageSender = messageSender,
                };

            receiver = new TimeoutPersisterReceiver(manager)
                {
                    TimeoutsPersister = persister,
                    MessageSender = messageSender,
                    SecondsToSleepBetweenPolls = 1,
                };
        }
Beispiel #10
0
        public void Setup()
        {
            timeout = TimeSpan.FromSeconds(1);
            interval = TimeSpan.FromSeconds(2);

            manager = new DefaultTimeoutManager();
            manager.Init(interval);

            manager.SagaTimedOut += (o, e) =>
            {
                sagaIds.Add(e.SagaId);
                eventTime = e.Time;
            };

            sagaIds = new List<Guid>();
            eventTime = DateTime.MinValue;
        }