public AbstractConsumer(IMessageHandler handler, ClientCacheContainer cacheContainer, ILoadBalance loadBalance, ISerializer serializer) { _handler = handler; _handler.Recieved += Message_Recieved; _cacheContainer = cacheContainer; _loadBalance = loadBalance; _serializer = serializer; _transportProvider = new TransportProvider(_cacheContainer, serializer); _connector = _transportProvider.GetConnector(_handler); }