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;
}