System.MarshalByRefObject.GetLifetimeService C# (CSharp) Method

GetLifetimeService() private method

private GetLifetimeService ( ) : Object
return Object
        public Object GetLifetimeService()
        {
            return LifetimeServices.GetLease(this); 
        }

Usage Example

 public bool Register(MarshalByRefObject obj)
 {
     ILease lifetimeService = (ILease) obj.GetLifetimeService();
     if (lifetimeService == null)
     {
         return false;
     }
     lifetimeService.Register(this);
     lock (this.sponsorTable)
     {
         this.sponsorTable[obj] = lifetimeService;
     }
     return true;
 }
All Usage Examples Of System.MarshalByRefObject::GetLifetimeService