コード例 #1
0
ファイル: GameService.cs プロジェクト: SlavaStef/game
 public GameService(
     TablesCollection tablesCollection,
     IMapper mapper)
 {
     _allTables = tablesCollection.Tables;
     _mapper    = mapper;
 }
コード例 #2
0
 public GameHub(
     TablesCollection tablesCollection,
     IGameService gameService,
     IGameProcessManager gameProcessManager,
     ILogger <GameHub> logger)
 {
     _allTables          = tablesCollection.Tables;
     _gameProcessManager = gameProcessManager;
     _gameService        = gameService;
     _logger             = logger;
 }
コード例 #3
0
ファイル: GameProcessManager.cs プロジェクト: SlavaStef/game
 public GameProcessManager(
     TablesCollection tablesCollection,
     IGameService gameService,
     IHubContext <GameHub> hubContext,
     IMapper mapper,
     ILogger <GameHub> logger)
 {
     _allTables   = tablesCollection.Tables;
     _hub         = hubContext;
     _gameService = gameService;
     _mapper      = mapper;
     _logger      = logger;
 }
コード例 #4
0
ファイル: TableDefinition.cs プロジェクト: brhinescot/Loom
        private void CheckForCharAsBooleans()
        {
            TablesCollection classTables = configuration.Tables;

            foreach (TablesElement tables in classTables)
            {
                if (name == tables.Name && owner == tables.Owner && !Compare.IsNullOrEmpty(tables.CharAsBooleanColumns))
                {
                    foreach (string item in tables.CharAsBooleanColumns.Split(';'))
                    {
                        CharAsBooleans.Add(item, null);
                    }
                    break;
                }
            }
        }
コード例 #5
0
        public TablesManager()
        {
            m_accessPath  = new DataAccessPath(this);
            m_tablesProxy = new TablesCollection(this);
            m_dataFactory = new DatumFactory();

            var tablesFolder = SettingsManager.TablesFolder;

            m_suppliers   = new DataSuppliersTable(Path.Combine(tablesFolder, "splr"));
            m_units       = new UnitsTable(Path.Combine(tablesFolder, "unit"));
            m_countries   = new CountriesTable(Path.Combine(tablesFolder, "ctry"));
            m_incoterms   = new IncotermsTable(Path.Combine(tablesFolder, "ict"));
            m_places      = new PlacesTable(Path.Combine(tablesFolder, "place"));
            m_currencies  = new CurrenciesTable(Path.Combine(tablesFolder, "cncy"));
            m_valContexts = new ValuesContextsTable(Path.Combine(tablesFolder, "vctxt"));
            m_products    = new ProductsTable(Path.Combine(tablesFolder, "prod"));
            m_sharedTexts = new SharedTextsTable(Path.Combine(tablesFolder, "stxt"));
            m_spotValues  = new SpotValuesTable(Path.Combine(tablesFolder, "sval"));
        }