/// <summary>
        ///     Connects a new ReceieveEndpoint to the BusService with queuename according to configuration
        /// </summary>
        /// <param name="busService"></param>
        /// <param name="action"></param>
        protected CommandService(IBusService busService, ICommandServiceConfiguration action)
        {
            _busService    = busService;
            _configuration = action;

            busService.CreateRequestClientAsync(_configuration.CommandQueueName,
                                                TimeSpan.FromSeconds(10), CancellationToken.None).Wait();

            busService.ConnectConsumerAsync(_configuration.CommandQueueName, this, CancellationToken.None).Wait();

            CommandHandlers = new List <ICommandHandler>();
        }
 public InMemoryCommandService(IBusService busService, ICommandServiceConfiguration action) : base(busService,
                                                                                                   action)
 {
 }