示例#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;
        }
示例#2
0
 public static void AddAdmin(string connectionid)
 {
     AdminClient = AddClient("admin", connectionid);
 }