public void Setup()
        {
            Address.InitializeLocalAddress("MyEndpoint");

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

            messageSender = new FakeMessageSender();
            manager       = new DefaultTimeoutManager
            {
                MessageSender = messageSender,
            };
        }
Esempio n. 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,
            };
        }