/// <summary>
        /// Initializes a new instance of the <see cref="BusSubscriptionConnector"/> class.
        /// </summary>
        /// <param name="bus">The bus.</param>
        public BusSubscriptionConnector(IServiceBus bus)
        {
            _dataBusSubscriptionCache = new EndpointSubscriptionConnectorCache(bus);
            _controlBusSubscriptionCache = new EndpointSubscriptionConnectorCache(bus.ControlBus);

            _connectionCache = new ConcurrentCache<Guid, UnsubscribeAction>();
        }
 public BusSubscriptionConnector(IServiceBus bus)
 {
     _cache = new EndpointSubscriptionConnectorCache(bus);
     _connectionCache = new Dictionary<Guid, UnsubscribeAction>();
 }