using System; using System.Runtime.InteropServices; namespace System.Runtime.Remoting.Lifetime { /// Controls the.NET remoting lifetime services. // Token: 0x020003D5 RID: 981 [ComVisible(true)] public sealed class LifetimeServices { /// Gets or sets the time interval between each activation of the lease manager to clean up expired leases. /// The default amount of time the lease manager sleeps after checking for expired leases. /// At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. This exception is thrown only when setting the property value. /// /// /// // Token: 0x17000736 RID: 1846 // (get) Token: 0x06002688 RID: 9864 RVA: 0x0007EF8C File Offset: 0x0007D18C // (set) Token: 0x06002689 RID: 9865 RVA: 0x0007EF94 File Offset: 0x0007D194 public static TimeSpan LeaseManagerPollTime { get { return LifetimeServices._leaseManagerPollTime; } set { LifetimeServices._leaseManagerPollTime = value; LifetimeServices._leaseManager.SetPollTime(value); } } /// Gets or sets the initial lease time span for an . /// The initial lease for objects that can have leases in the . /// At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. This exception is thrown only when setting the property value. /// /// /// // Token: 0x17000737 RID: 1847 // (get) Token: 0x0600268A RID: 9866 RVA: 0x0007EFA8 File Offset: 0x0007D1A8 // (set) Token: 0x0600268B RID: 9867 RVA: 0x0007EFB0 File Offset: 0x0007D1B0 public static TimeSpan LeaseTime { get { return LifetimeServices._leaseTime; } set { LifetimeServices._leaseTime = value; } } /// Gets or sets the amount of time by which the lease is extended every time a call comes in on the server object. /// The by which a lifetime lease in the current is extended after each call. /// At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. This exception is thrown only when setting the property value. /// /// /// // Token: 0x17000738 RID: 1848 // (get) Token: 0x0600268C RID: 9868 RVA: 0x0007EFB8 File Offset: 0x0007D1B8 // (set) Token: 0x0600268D RID: 9869 RVA: 0x0007EFC0 File Offset: 0x0007D1C0 public static TimeSpan RenewOnCallTime { get { return LifetimeServices._renewOnCallTime; } set { LifetimeServices._renewOnCallTime = value; } } /// Gets or sets the amount of time the lease manager waits for a sponsor to return with a lease renewal time. /// The initial sponsorship time-out. /// At least one of the callers higher in the callstack does not have permission to configure remoting types and channels. This exception is thrown only when setting the property value. /// /// /// // Token: 0x17000739 RID: 1849 // (get) Token: 0x0600268E RID: 9870 RVA: 0x0007EFC8 File Offset: 0x0007D1C8 // (set) Token: 0x0600268F RID: 9871 RVA: 0x0007EFD0 File Offset: 0x0007D1D0 public static TimeSpan SponsorshipTimeout { get { return LifetimeServices._sponsorshipTimeout; } set { LifetimeServices._sponsorshipTimeout = value; } } // Token: 0x06002690 RID: 9872 RVA: 0x0007EFD8 File Offset: 0x0007D1D8 internal static void TrackLifetime(ServerIdentity identity) { LifetimeServices._leaseManager.TrackLifetime(identity); } // Token: 0x06002691 RID: 9873 RVA: 0x0007EFE8 File Offset: 0x0007D1E8 internal static void StopTrackingLifetime(ServerIdentity identity) { LifetimeServices._leaseManager.StopTrackingLifetime(identity); } // Token: 0x04000F06 RID: 3846 private static TimeSpan _leaseManagerPollTime = TimeSpan.FromSeconds(10.0); // Token: 0x04000F07 RID: 3847 private static TimeSpan _leaseTime = TimeSpan.FromMinutes(5.0); // Token: 0x04000F08 RID: 3848 private static TimeSpan _renewOnCallTime = TimeSpan.FromMinutes(2.0); // Token: 0x04000F09 RID: 3849 private static TimeSpan _sponsorshipTimeout = TimeSpan.FromMinutes(2.0); // Token: 0x04000F0A RID: 3850 private static LeaseManager _leaseManager = new LeaseManager(); } }