// Clear this object's identity. internal void ClearIdentity() { lock (this) { identity = null; } }
// Set this object's identity. internal void SetIdentity(RemotingServices.Identity identity) { lock (this) { if (RemotingServices.IsTransparentProxy(this)) { RemotingServices.GetRealProxy(this).Identity = identity; } else { this.identity = identity; } } }