Example #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();
     }
 }
Example #2
0
 private GameBll()
 {
     gameDal   = GameDal.Instance();
     arenaDal  = ArenaDal.Instance();
     playerDal = PlayerDal.Instance();
 }
Example #3
0
 public PlayersBL()
 {
     playerDal = new PlayerDal();
 }
Example #4
0
 private PlayerBll()
 {
     playerDal = PlayerDal.Instance();
 }