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