예제 #1
0
        public RabbitMqDialogue(RabbitMqProducer eventChannel, RabbitMqProducer responseChannel,
                                RabbitMqConsumer requestChannel, Guid dialogueId, IConnection dialogueConnection)
        {
            _eventChannel       = eventChannel;
            _responseChannel    = responseChannel;
            _requestChannel     = requestChannel;
            _dialogueConnection = dialogueConnection;
            DialogueId          = dialogueId;
            Created             = DateTime.Now;

            // Attach to Consumer Channel
            _requestChannel.StartConsumer(OnDequeue, OnError);
        }
예제 #2
0
        private void CreateControlChannel(string appName, RabbitMqBackendQueueConfig options)
        {
            var newChannel = new RabbitMqProducer(_primaryApplicationChannel, appName, options);

            _controlChannels.Add(appName, newChannel);
        }