Exemplo n.º 1
0
 public static void TryRemoveSummoner(string ConnectionId)
 {
     if (!ClientSummoner.ContainsKey(ConnectionId))
     {
         return;
     }
     ClientSummoner[ConnectionId] = null;
     ClientSummoner.Remove(ConnectionId);
 }
Exemplo n.º 2
0
 public static void TryStoreSummoner(string ConnectionId, Summoner summoner)
 {
     if (!ClientSummoner.ContainsKey(ConnectionId))
     {
         ClientSummoner.Add(ConnectionId, summoner);
         return;
     }
     ClientSummoner[ConnectionId] = summoner;
 }