示例#1
0
        public void Setup()
        {
            persister     = CreateTimeoutPersister();
            messageSender = new FakeMessageSender();

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

            receiver = new TimeoutPersisterReceiver
            {
                TimeoutManager             = manager,
                TimeoutsPersister          = persister,
                MessageSender              = messageSender,
                SecondsToSleepBetweenPolls = 1,
            };
        }
示例#2
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,
                };
        }