Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 internal void RegisterClientDisconnectListerner(IClientDisconnection listerver)
 {
     _clientDisconnection = listerver;
 }