public void UpdateBackpack(string aPlayerSteamId, ItemStack[] aToolbar, ItemStack[] aBag)
        {
            Backpack backpack = TaskTools.Retry(() => backpack = ExecUpdate(aPlayerSteamId, aToolbar, aBag));

            if (backpack != null)
            {
                BackpackHub?.Clients.All.SendAsync("UpdateBackpack", JsonConvert.SerializeObject(backpack)).Wait();
            }
        }
 public Player GetPlayer(string aSteamId)
 {
     return(TaskTools.Retry(() =>
     {
         using (var DB = new PlayerContext())
         {
             return DB.Players.FirstOrDefault(P => P.SteamId == aSteamId);
         }
     }));
 }
 public Player GetPlayer(int aPlayerId)
 {
     return(TaskTools.Retry(() =>
     {
         using (var DB = new PlayerContext())
         {
             return DB.Players.FirstOrDefault(P => P.EntityId == aPlayerId);
         }
     }));
 }