コード例 #1
0
 public MyNoSqlGrpcServerWriter(DbTablesList dbTablesList, SyncEventsPusher syncEventsPusher,
                                SyncEventsQueue syncEventsQueue)
 {
     Console.WriteLine("Creating MyNoSqlGrpcServerWriter");
     _dbTablesList     = dbTablesList;
     _syncEventsPusher = syncEventsPusher;
     _syncEventsQueue  = syncEventsQueue;
 }
コード例 #2
0
        public static DbTable GetTable(this DbTablesList dbTablesList, string tableName)
        {
            var table = dbTablesList.TryGetTable(tableName);

            if (table == null)
            {
                throw new Exception($"Table {tableName} is not found");
            }

            return(table);
        }
コード例 #3
0
 public MyNoSqlGrpcServerReader(MyNoSqlReaderSessionsList sessionsList, DbTablesList dbTablesList, IMyNoSqlGrpcEngineSettings settings)
 {
     _sessionsList = sessionsList;
     _dbTablesList = dbTablesList;
     _settings     = settings;
 }
コード例 #4
0
 public TablesController(DbTablesList dbTablesList)
 {
     _dbTablesList = dbTablesList;
 }