not the object uri, so they must be unregistered using the same key.
svn path=/trunk/mcs/; revision=23168
+2004-02-17 Lluis Sanchez Gual <lluis@ximian.com>
+
+ * RemotingServices.cs: Client identities are registered using the full url,
+ not the object uri, so they must be unregistered using the same key.
+
2004-01-24 Lluis Sanchez Gual <lluis@ximian.com>
* TypeInfo.cs: The list of interfaces may be null. Added check.
lock (uri_hash)
{
if (!ident.Disposed) {
- uri_hash.Remove (ident.ObjectUri);
+ ClientIdentity clientId = ident as ClientIdentity;
+ if (clientId != null)
+ uri_hash.Remove (GetNormalizedUri (clientId.TargetUri));
+ else
+ uri_hash.Remove (ident.ObjectUri);
+
ident.Disposed = true;
}
}