This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
@@ -0,0 +1,99 @@
using System;
using System.Runtime.InteropServices;
namespace System.Runtime.Remoting.Lifetime
{
/// <summary>Defines a lifetime lease object that is used by the remoting lifetime service.</summary>
// Token: 0x020003CF RID: 975
[ComVisible(true)]
public interface ILease
{
/// <summary>Gets the amount of time remaining on the lease.</summary>
/// <returns>The amount of time remaining on the lease.</returns>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x1700072B RID: 1835
// (get) Token: 0x0600265C RID: 9820
TimeSpan CurrentLeaseTime { get; }
/// <summary>Gets the current <see cref="T:System.Runtime.Remoting.Lifetime.LeaseState" /> of the lease.</summary>
/// <returns>The current <see cref="T:System.Runtime.Remoting.Lifetime.LeaseState" /> of the lease.</returns>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x1700072C RID: 1836
// (get) Token: 0x0600265D RID: 9821
LeaseState CurrentState { get; }
/// <summary>Gets or sets the initial time for the lease.</summary>
/// <returns>The initial time for the lease.</returns>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x1700072D RID: 1837
// (get) Token: 0x0600265E RID: 9822
// (set) Token: 0x0600265F RID: 9823
TimeSpan InitialLeaseTime { get; set; }
/// <summary>Gets or sets the amount of time by which a call to the remote object renews the <see cref="P:System.Runtime.Remoting.Lifetime.ILease.CurrentLeaseTime" />.</summary>
/// <returns>The amount of time by which a call to the remote object renews the <see cref="P:System.Runtime.Remoting.Lifetime.ILease.CurrentLeaseTime" />.</returns>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x1700072E RID: 1838
// (get) Token: 0x06002660 RID: 9824
// (set) Token: 0x06002661 RID: 9825
TimeSpan RenewOnCallTime { get; set; }
/// <summary>Gets or sets the amount of time to wait for a sponsor to return with a lease renewal time.</summary>
/// <returns>The amount of time to wait for a sponsor to return with a lease renewal time.</returns>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x1700072F RID: 1839
// (get) Token: 0x06002662 RID: 9826
// (set) Token: 0x06002663 RID: 9827
TimeSpan SponsorshipTimeout { get; set; }
/// <summary>Registers a sponsor for the lease without renewing the lease.</summary>
/// <param name="obj">The callback object of the sponsor. </param>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x06002664 RID: 9828
void Register(ISponsor obj);
/// <summary>Registers a sponsor for the lease, and renews it by the specified <see cref="T:System.TimeSpan" />.</summary>
/// <param name="obj">The callback object of the sponsor. </param>
/// <param name="renewalTime">The length of time to renew the lease by. </param>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
// Token: 0x06002665 RID: 9829
void Register(ISponsor obj, TimeSpan renewalTime);
/// <summary>Renews a lease for the specified time.</summary>
/// <returns>The new expiration time of the lease.</returns>
/// <param name="renewalTime">The length of time to renew the lease by. </param>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x06002666 RID: 9830
TimeSpan Renew(TimeSpan renewalTime);
/// <summary>Removes a sponsor from the sponsor list.</summary>
/// <param name="obj">The lease sponsor to unregister. </param>
/// <exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission. </exception>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="Infrastructure" />
/// </PermissionSet>
// Token: 0x06002667 RID: 9831
void Unregister(ISponsor obj);
}
}