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