Example #1
0
 // Clear this object's identity.
 internal void ClearIdentity()
 {
     lock (this)
     {
         identity = null;
     }
 }
Example #2
0
 // 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;
         }
     }
 }