public MessageHeaderHandler(IDatabaseContextFactory databaseContextFactory,
                                    IMessageHeaderQuery messageHeaderQuery)
        {
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(messageHeaderQuery, nameof(messageHeaderQuery));

            _databaseContextFactory = databaseContextFactory;
            _messageHeaderQuery     = messageHeaderQuery;
        }
        public MessageHeadersController(IServiceBus bus, IDatabaseContextFactory databaseContextFactory, IMessageHeaderQuery queueQuery)
        {
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(queueQuery, nameof(queueQuery));
            Guard.AgainstNull(bus, nameof(bus));

            _databaseContextFactory = databaseContextFactory;
            _queueQuery             = queueQuery;
            _bus = bus;
        }