Exemplo n.º 1
0
 public UserService(IOptions <AppSettings> appSettings, IIdentity userIdentity)
 {
     _appSettings = appSettings.Value;
     playerDal    = new PlayerDal();
     if (userIdentity != null)
     {
         messageDal = new MessageDal(int.Parse(userIdentity.Name));
         myPlayer   = playerDal.Get(new Player {
             Id = int.Parse(userIdentity.Name)
         }).GetObject();
     }
 }
Exemplo n.º 2
0
 private GameBll()
 {
     gameDal   = GameDal.Instance();
     arenaDal  = ArenaDal.Instance();
     playerDal = PlayerDal.Instance();
 }
Exemplo n.º 3
0
 public PlayersBL()
 {
     playerDal = new PlayerDal();
 }
Exemplo n.º 4
0
 private PlayerBll()
 {
     playerDal = PlayerDal.Instance();
 }