62 lines
2.7 KiB
C#
62 lines
2.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Runtime.Remoting.Lifetime
|
|
{
|
|
/// <summary>Defines a lifetime lease object that is used by the remoting lifetime service.</summary>
|
|
// Token: 0x020004C4 RID: 1220
|
|
[Token(Token = "0x20004C4")]
|
|
[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>
|
|
// Token: 0x17000581 RID: 1409
|
|
// (get) Token: 0x060027E8 RID: 10216
|
|
[Token(Token = "0x17000581")]
|
|
TimeSpan CurrentLeaseTime
|
|
{
|
|
[Token(Token = "0x60027E8")]
|
|
[Address(Slot = "0")]
|
|
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>
|
|
// Token: 0x17000582 RID: 1410
|
|
// (get) Token: 0x060027E9 RID: 10217
|
|
[Token(Token = "0x17000582")]
|
|
LeaseState CurrentState
|
|
{
|
|
[Token(Token = "0x60027E9")]
|
|
[Address(Slot = "1")]
|
|
get;
|
|
}
|
|
|
|
/// <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>
|
|
// Token: 0x17000583 RID: 1411
|
|
// (get) Token: 0x060027EA RID: 10218
|
|
[Token(Token = "0x17000583")]
|
|
TimeSpan RenewOnCallTime
|
|
{
|
|
[Token(Token = "0x60027EA")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Renews a lease for the specified time.</summary>
|
|
/// <param name="renewalTime">The length of time to renew the lease by.</param>
|
|
/// <returns>The new expiration time 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>
|
|
// Token: 0x060027EB RID: 10219
|
|
[Token(Token = "0x60027EB")]
|
|
[Address(Slot = "3")]
|
|
TimeSpan Renew(TimeSpan renewalTime);
|
|
}
|
|
}
|