Beispiel #1
0
        public static Client AddClient(string name, string connectionid)
        {
            var client = new Client()
                             {
                                 ConnectionId = connectionid,
                                 Name = name
                             };

            UserConnectionIDictionary[name] = connectionid;
            ConnectionIdClientDictionary[connectionid] = client;
            return client;
        }
Beispiel #2
0
 public static void AddAdmin(string connectionid)
 {
     AdminClient = AddClient("admin", connectionid);
 }