public ClientSession(IDatabaseEngineFactory databaseEngineFactory, IClientDisconnection clientDisconnection, string shardName) { _databaseEngineFactory = databaseEngineFactory; if (_databaseEngineFactory is DatabaseEngineFactory) { _dbEngine = _databaseEngineFactory.GetDatabaseEngine(null); } _clientDisconnection = clientDisconnection; _readersList = new List <ReaderInfo>(); _conmmandInfos = new List <CommandInfo>(); _shardName = shardName; }
internal void RegisterClientDisconnectListerner(IClientDisconnection listerver) { _clientDisconnection = listerver; }