public static Client AddClient(string name, string connectionid) { var client = new Client() { ConnectionId = connectionid, Name = name }; UserConnectionIDictionary[name] = connectionid; ConnectionIdClientDictionary[connectionid] = client; return client; }
public static void AddAdmin(string connectionid) { AdminClient = AddClient("admin", connectionid); }