private string GetResult(BlockingQueueConsumer consumer, bool expected)
        {
            var response = consumer.NextMessage(expected ? 2000 : 100);

            if (response == null)
            {
                return(null);
            }

            return(new Rabbit.Support.Converter.SimpleMessageConverter().FromMessage <string>(response));
        }
Exemple #2
0
        /// <summary>Gets the result.</summary>
        /// <param name="consumer">The consumer.</param>
        /// <returns>The result.</returns>
        private string GetResult(BlockingQueueConsumer consumer)
        {
            var response = consumer.NextMessage(200);

            if (response == null)
            {
                return(null);
            }

            return((string)new SimpleMessageConverter().FromMessage(response));
        }