示例#1
0
        public void Unregister(MarshalByRefObject obj)
        {
            ILease lease = (ILease)RemotingServices.GetLifetimeService(obj);

            Debug.Assert(lease.CurrentState == LeaseState.Active);
            lease.Unregister(this);
            lock (this._lock) {
                this._leaseList.Remove(lease);
                Logger.Debug(this, "Stopped sponsoring lease #" + lease.GetHashCode() + " for proxy to " + obj.GetType().Name + ", id = #" + obj.GetHashCode() + ", url = " + RemotingServices.GetObjectUri(obj));
            }
        }