Ejemplo n.º 1
0
        public void SetUp()
        {
            _bus = new InMemoryBus(string.Format("bus_{0}", _serverEndPoint.Port));

            _service = new HttpService(_bus, new[] { _serverEndPoint.ToHttpUrl() });
            _client  = new HttpAsyncClient();

            HttpBootstrap.Subscribe(_bus, _service);
        }
Ejemplo n.º 2
0
        public void TearDown()
        {
            HttpBootstrap.Unsubscribe(_bus, _service);

            _service.Shutdown();
        }