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