public MsmqHubLifetimeManager(
            ILogger <MsmqHubLifetimeManager <THub> > logger,
            IOptions <MsmqOptions> options,
            IHubProtocolResolver hubProtocolResolver,
            IMsmqBus msmqBus)
        {
            this.logger     = logger;
            this.options    = options.Value;
            this.protocol   = new MsmqProtocol(hubProtocolResolver.AllProtocols);
            this.msmqBus    = msmqBus;
            this.queues     = new MsmqQueues(this.options.ApplicationName);
            this.ackHandler = new AckHandler();

            MsmqLog.ConnectingToEndpoints(this.logger, this.options.ConnectionString, this.options.ApplicationName);
            _ = this.EnsureMsmqServerConnection();
        }
 public GivenMsmqProtocol()
 {
     this.hubProtocols = new[] { new DummyHubProtocol("p1"), new DummyHubProtocol("p2") };
     this.protocol     = new MsmqProtocol(this.hubProtocols);
 }