コード例 #1
0
        public void SetUp()
        {
            _notificationEngineMqServer = new NotificationEngineMqServer("NotificationEngineMqConfig.xml");
            _notificationEngineMqServer.Connect();

            _notificationEngineClient = ContextRegistry.GetContext()["NotificationEngineClient"] as NotificationEngineClient;
            if (_notificationEngineClient != null)
            {
                _notificationEngineClient.StartCommunicator();
            }
        }
コード例 #2
0
        public void SetUp()
        {
            _notificationEngineMqServer = new NotificationEngineMqServer("NotificationEngineMqConfig.xml");

            _notificationEngineMqServer.Connect();

            // Initialize Advance Bus
            _advancedBus = RabbitHutch.CreateBus("host=localhost").Advanced;

            // Create a admin exchange
            _adminExchange = _advancedBus.ExchangeDeclare("notificationengine_exchange", ExchangeType.Direct, false, true, false);
        }