void ReadLifetine (SmallXmlParser.IAttrList attrs)
{
for (int i=0; i < attrs.Names.Length; ++i) {
switch (attrs.Names[i]) {
case "leaseTime":
LifetimeServices.LeaseTime = ParseTime (attrs.GetValue(i));
break;
case "sponsorshipTimeout":
LifetimeServices.SponsorshipTimeout = ParseTime (attrs.GetValue(i));
break;
case "renewOnCallTime":
LifetimeServices.RenewOnCallTime = ParseTime (attrs.GetValue(i));
break;
case "leaseManagerPollTime":
LifetimeServices.LeaseManagerPollTime = ParseTime (attrs.GetValue(i));
break;
default:
throw new RemotingException ("Invalid attribute: " + attrs.Names[i]);
}
}
}