Exemplo n.º 1
0
        public BasicMessageQueueProducer()
        {
            string baseQueueName = @".\Private$\" + typeof(T).FullName;

            QueueHelpers.CreateProducerAndConsumerQueues(baseQueueName,
                                                         out _producerQueue,
                                                         out _consumerQueue);
            _consumerQueue.Formatter = new ResponseFormatter <List <T> >();
            _id = Guid.NewGuid();
        }
        public BasicMessageQueueConsumer()
        {
            string baseQueueName = @".\Private$\" + typeof(T).FullName;

            QueueHelpers.CreateProducerAndConsumerQueues(baseQueueName,
                                                         out _producerQueue,
                                                         out _consumerQueue);
            _producerQueue.Formatter         = new RequestFormatter <T>();
            _producerQueue.ReceiveCompleted += _producerQueue_ReceiveCompleted;
        }