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); }
private void CreateControlChannel(string appName, RabbitMqBackendQueueConfig options) { var newChannel = new RabbitMqProducer(_primaryApplicationChannel, appName, options); _controlChannels.Add(appName, newChannel); }