Пример #1
0
 internal void Remove(XmlEntityStream stream) {
     lock (_connections) {
         XmlWebConnectionLimit limit = (XmlWebConnectionLimit)_connections[stream.Uri.Host];
         if (limit != null) {
             limit.Limit--;
             if (limit.Limit <= limit.OriginalLimit)
                 _connections.Remove(stream.Uri.Host);
         }
     }
 }
 internal void Remove(XmlEntityStream stream)
 {
     lock (_connections) {
         XmlWebConnectionLimit limit = (XmlWebConnectionLimit)_connections[stream.Uri.Host];
         if (limit != null)
         {
             limit.Limit--;
             if (limit.Limit <= limit.OriginalLimit)
             {
                 _connections.Remove(stream.Uri.Host);
             }
         }
     }
 }