Пример #1
0
 void ShareService_UserLeave(object sender, ServerEventArgs e)
 {
     lock (o)
     {
         if (e.User.UserName != null)
         {
             foreach (var item in _userDict)
             {
                 if (item.Key != e.User)
                 {
                     item.Value.UserLeave(e.User.UserName);
                 }
             }
         }
     }
 }