public IMessageReceiver CreateReceiver(string queueName, bool singleActiveConsumer = false)
 {
     return(new InMemoryMessageReceiver(_messages, queueName, _loggerFactory.CreateLogger <InMemoryMessageReceiver>()));
 }
 public IMessageReceiver CreateReceiver(string queueName, bool singleActiveConsumer = false)
 {
     return(new SqlServerMessageReceiver <TDbContext>(queueName, singleActiveConsumer, _serviceScopeFactory,
                                                      _jobLoggerFactory.CreateLogger <SqlServerMessageReceiver <TDbContext> >()));
 }