Пример #1
0
 public GameController(IOptions <ConnectionStrings> connIn)
 {
     _gameRepo = new GameRepository(connIn.Value.DefaultConnection);
     _engine   = new GameEngineRepository(connIn.Value.DefaultConnection);
     _diceRepo = new DiceRepository(connIn.Value.DefaultConnection);
     _shake    = new ShakeValueRepository(connIn.Value.DefaultConnection);
     _wallets  = new WalletRepository(connIn.Value.DefaultConnection);
 }
Пример #2
0
 public ValuesController(IOptions <ConnectionStrings> conn)
 {
     _repo               = new DiceRepository(conn.Value.DefaultConnection);
     _engine             = new GameEngineRepository(conn.Value.DefaultConnection);
     _serializerSettings = new JsonSerializerSettings
     {
         Formatting = Formatting.Indented
     };
 }