This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,61 @@
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: 0x020004E0 RID: 1248
[Token(Token = "0x20004E0")]
[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: 0x170005F9 RID: 1529
// (get) Token: 0x060029F5 RID: 10741
[Token(Token = "0x170005F9")]
TimeSpan CurrentLeaseTime
{
[Token(Token = "0x60029F5")]
[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: 0x170005FA RID: 1530
// (get) Token: 0x060029F6 RID: 10742
[Token(Token = "0x170005FA")]
LeaseState CurrentState
{
[Token(Token = "0x60029F6")]
[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: 0x170005FB RID: 1531
// (get) Token: 0x060029F7 RID: 10743
[Token(Token = "0x170005FB")]
TimeSpan RenewOnCallTime
{
[Token(Token = "0x60029F7")]
[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: 0x060029F8 RID: 10744
[Token(Token = "0x60029F8")]
[Address(Slot = "3")]
TimeSpan Renew(TimeSpan renewalTime);
}
}
@@ -0,0 +1,22 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
/// <summary>Indicates that the implementer wants to be a lifetime lease sponsor.</summary>
// Token: 0x020004E1 RID: 1249
[Token(Token = "0x20004E1")]
[ComVisible(true)]
public interface ISponsor
{
/// <summary>Requests a sponsoring client to renew the lease for the specified object.</summary>
/// <param name="lease">The lifetime lease of the object that requires lease renewal.</param>
/// <returns>The additional lease time for the specified object.</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: 0x060029F9 RID: 10745
[Token(Token = "0x60029F9")]
[Address(Slot = "0")]
TimeSpan Renewal(ILease lease);
}
}
@@ -0,0 +1,145 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
// Token: 0x020004E2 RID: 1250
[Token(Token = "0x20004E2")]
internal class Lease : MarshalByRefObject, ILease
{
// Token: 0x060029FA RID: 10746 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FA")]
[Address(RVA = "0x2C00CE0", Offset = "0x2BFFCE0", VA = "0x182C00CE0")]
public Lease()
{
}
// Token: 0x170005FC RID: 1532
// (get) Token: 0x060029FB RID: 10747 RVA: 0x000185B8 File Offset: 0x000167B8
[Token(Token = "0x170005FC")]
public TimeSpan CurrentLeaseTime
{
[Token(Token = "0x60029FB")]
[Address(RVA = "0x2C00E80", Offset = "0x2BFFE80", VA = "0x182C00E80", Slot = "6")]
get
{
return default(TimeSpan);
}
}
// Token: 0x170005FD RID: 1533
// (get) Token: 0x060029FC RID: 10748 RVA: 0x000185D0 File Offset: 0x000167D0
[Token(Token = "0x170005FD")]
public LeaseState CurrentState
{
[Token(Token = "0x60029FC")]
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70", Slot = "7")]
get
{
return LeaseState.Null;
}
}
// Token: 0x060029FD RID: 10749 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60029FD")]
[Address(RVA = "0x2C00480", Offset = "0x2BFF480", VA = "0x182C00480")]
public void Activate()
{
}
// Token: 0x170005FE RID: 1534
// (get) Token: 0x060029FE RID: 10750 RVA: 0x000185E8 File Offset: 0x000167E8
[Token(Token = "0x170005FE")]
public TimeSpan RenewOnCallTime
{
[Token(Token = "0x60029FE")]
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "8")]
get
{
return default(TimeSpan);
}
}
// Token: 0x060029FF RID: 10751 RVA: 0x00018600 File Offset: 0x00016800
[Token(Token = "0x60029FF")]
[Address(RVA = "0x2C00940", Offset = "0x2BFF940", VA = "0x182C00940", Slot = "9")]
public TimeSpan Renew(TimeSpan renewalTime)
{
return default(TimeSpan);
}
// Token: 0x06002A00 RID: 10752 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A00")]
[Address(RVA = "0x2C00A20", Offset = "0x2BFFA20", VA = "0x182C00A20", Slot = "10")]
public void Unregister(ISponsor obj)
{
}
// Token: 0x06002A01 RID: 10753 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A01")]
[Address(RVA = "0x2C00B40", Offset = "0x2BFFB40", VA = "0x182C00B40")]
internal void UpdateState()
{
}
// Token: 0x06002A02 RID: 10754 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A02")]
[Address(RVA = "0x2C00490", Offset = "0x2BFF490", VA = "0x182C00490")]
private void CheckNextSponsor()
{
}
// Token: 0x06002A03 RID: 10755 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A03")]
[Address(RVA = "0x2C006F0", Offset = "0x2BFF6F0", VA = "0x182C006F0")]
private void ProcessSponsorResponse(object state, bool timedOut)
{
}
// Token: 0x04001833 RID: 6195
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001833")]
private DateTime _leaseExpireTime;
// Token: 0x04001834 RID: 6196
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001834")]
private LeaseState _currentState;
// Token: 0x04001835 RID: 6197
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001835")]
private TimeSpan _initialLeaseTime;
// Token: 0x04001836 RID: 6198
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001836")]
private TimeSpan _renewOnCallTime;
// Token: 0x04001837 RID: 6199
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001837")]
private TimeSpan _sponsorshipTimeout;
// Token: 0x04001838 RID: 6200
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001838")]
private ArrayList _sponsors;
// Token: 0x04001839 RID: 6201
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001839")]
private Queue _renewingSponsors;
// Token: 0x0400183A RID: 6202
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x400183A")]
private Lease.RenewalDelegate _renewalDelegate;
// Token: 0x020004E3 RID: 1251
// (Invoke) Token: 0x06002A05 RID: 10757
[Token(Token = "0x20004E3")]
private delegate TimeSpan RenewalDelegate(ILease lease);
}
}
@@ -0,0 +1,64 @@
using System;
using System.Collections;
using System.Threading;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
// Token: 0x020004E4 RID: 1252
[Token(Token = "0x20004E4")]
internal class LeaseManager
{
// Token: 0x06002A08 RID: 10760 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A08")]
[Address(RVA = "0x2BFFC80", Offset = "0x2BFEC80", VA = "0x182BFFC80")]
public void SetPollTime(TimeSpan timeSpan)
{
}
// Token: 0x06002A09 RID: 10761 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A09")]
[Address(RVA = "0x2BFFEE0", Offset = "0x2BFEEE0", VA = "0x182BFFEE0")]
public void TrackLifetime(ServerIdentity identity)
{
}
// Token: 0x06002A0A RID: 10762 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0A")]
[Address(RVA = "0x2BFFD50", Offset = "0x2BFED50", VA = "0x182BFFD50")]
public void StartManager()
{
}
// Token: 0x06002A0B RID: 10763 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0B")]
[Address(RVA = "0x2BFFEC0", Offset = "0x2BFEEC0", VA = "0x182BFFEC0")]
public void StopManager()
{
}
// Token: 0x06002A0C RID: 10764 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0C")]
[Address(RVA = "0x2BFFA40", Offset = "0x2BFEA40", VA = "0x182BFFA40")]
public void ManageLeases(object state)
{
}
// Token: 0x06002A0D RID: 10765 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0D")]
[Address(RVA = "0x2C00130", Offset = "0x2BFF130", VA = "0x182C00130")]
public LeaseManager()
{
}
// Token: 0x0400183B RID: 6203
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400183B")]
private ArrayList _objects;
// Token: 0x0400183C RID: 6204
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400183C")]
private Timer _timer;
}
}
@@ -0,0 +1,46 @@
using System;
using System.Runtime.Remoting.Messaging;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
// Token: 0x020004E5 RID: 1253
[Token(Token = "0x20004E5")]
internal class LeaseSink : IMessageSink
{
// Token: 0x06002A0E RID: 10766 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A0E")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
public LeaseSink(IMessageSink nextSink)
{
}
// Token: 0x06002A0F RID: 10767 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A0F")]
[Address(RVA = "0x2C00410", Offset = "0x2BFF410", VA = "0x182C00410", Slot = "4")]
public IMessage SyncProcessMessage(IMessage msg)
{
return null;
}
// Token: 0x06002A10 RID: 10768 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002A10")]
[Address(RVA = "0x2C00190", Offset = "0x2BFF190", VA = "0x182C00190", Slot = "5")]
public IMessageCtrl AsyncProcessMessage(IMessage msg, IMessageSink replySink)
{
return null;
}
// Token: 0x06002A11 RID: 10769 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A11")]
[Address(RVA = "0x2C00210", Offset = "0x2BFF210", VA = "0x182C00210")]
private void RenewLease(IMessage msg)
{
}
// Token: 0x0400183D RID: 6205
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400183D")]
private IMessageSink _nextSink;
}
}
@@ -0,0 +1,35 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
/// <summary>Indicates the possible lease states of a lifetime lease.</summary>
// Token: 0x020004E6 RID: 1254
[Token(Token = "0x20004E6")]
[ComVisible(true)]
[Serializable]
public enum LeaseState
{
/// <summary>The lease is not initialized.</summary>
// Token: 0x0400183F RID: 6207
[Token(Token = "0x400183F")]
Null,
/// <summary>The lease has been created, but is not yet active.</summary>
// Token: 0x04001840 RID: 6208
[Token(Token = "0x4001840")]
Initial,
/// <summary>The lease is active and has not expired.</summary>
// Token: 0x04001841 RID: 6209
[Token(Token = "0x4001841")]
Active,
/// <summary>The lease has expired and is seeking sponsorship.</summary>
// Token: 0x04001842 RID: 6210
[Token(Token = "0x4001842")]
Renewing,
/// <summary>The lease has expired and cannot be renewed.</summary>
// Token: 0x04001843 RID: 6211
[Token(Token = "0x4001843")]
Expired
}
}
@@ -0,0 +1,128 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
/// <summary>Controls the.NET remoting lifetime services.</summary>
// Token: 0x020004E7 RID: 1255
[Token(Token = "0x20004E7")]
[ComVisible(true)]
public sealed class LifetimeServices
{
/// <summary>Gets or sets the time interval between each activation of the lease manager to clean up expired leases.</summary>
/// <returns>The default amount of time the lease manager sleeps after checking for expired leases.</returns>
/// <exception cref="T:System.Security.SecurityException">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.</exception>
// Token: 0x170005FF RID: 1535
// (get) Token: 0x06002A13 RID: 10771 RVA: 0x00018618 File Offset: 0x00016818
// (set) Token: 0x06002A14 RID: 10772 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170005FF")]
public static TimeSpan LeaseManagerPollTime
{
[Token(Token = "0x6002A13")]
[Address(RVA = "0x2C010A0", Offset = "0x2C000A0", VA = "0x182C010A0")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002A14")]
[Address(RVA = "0x2C01220", Offset = "0x2C00220", VA = "0x182C01220")]
set
{
}
}
/// <summary>Gets or sets the initial lease time span for an <see cref="T:System.AppDomain" />.</summary>
/// <returns>The initial lease <see cref="T:System.TimeSpan" /> for objects that can have leases in the <see cref="T:System.AppDomain" />.</returns>
/// <exception cref="T:System.Security.SecurityException">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.</exception>
// Token: 0x17000600 RID: 1536
// (get) Token: 0x06002A15 RID: 10773 RVA: 0x00018630 File Offset: 0x00016830
// (set) Token: 0x06002A16 RID: 10774 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000600")]
public static TimeSpan LeaseTime
{
[Token(Token = "0x6002A15")]
[Address(RVA = "0x2C01100", Offset = "0x2C00100", VA = "0x182C01100")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002A16")]
[Address(RVA = "0x2C012B0", Offset = "0x2C002B0", VA = "0x182C012B0")]
set
{
}
}
/// <summary>Gets or sets the amount of time by which the lease is extended every time a call comes in on the server object.</summary>
/// <returns>The <see cref="T:System.TimeSpan" /> by which a lifetime lease in the current <see cref="T:System.AppDomain" /> is extended after each call.</returns>
/// <exception cref="T:System.Security.SecurityException">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.</exception>
// Token: 0x17000601 RID: 1537
// (get) Token: 0x06002A17 RID: 10775 RVA: 0x00018648 File Offset: 0x00016848
// (set) Token: 0x06002A18 RID: 10776 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000601")]
public static TimeSpan RenewOnCallTime
{
[Token(Token = "0x6002A17")]
[Address(RVA = "0x2C01160", Offset = "0x2C00160", VA = "0x182C01160")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002A18")]
[Address(RVA = "0x2C01370", Offset = "0x2C00370", VA = "0x182C01370")]
set
{
}
}
/// <summary>Gets or sets the amount of time the lease manager waits for a sponsor to return with a lease renewal time.</summary>
/// <returns>The initial sponsorship time-out.</returns>
/// <exception cref="T:System.Security.SecurityException">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.</exception>
// Token: 0x17000602 RID: 1538
// (get) Token: 0x06002A19 RID: 10777 RVA: 0x00018660 File Offset: 0x00016860
// (set) Token: 0x06002A1A RID: 10778 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000602")]
public static TimeSpan SponsorshipTimeout
{
[Token(Token = "0x6002A19")]
[Address(RVA = "0x2C011C0", Offset = "0x2C001C0", VA = "0x182C011C0")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002A1A")]
[Address(RVA = "0x2C01430", Offset = "0x2C00430", VA = "0x182C01430")]
set
{
}
}
// Token: 0x06002A1B RID: 10779 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002A1B")]
[Address(RVA = "0x2C00EE0", Offset = "0x2BFFEE0", VA = "0x182C00EE0")]
internal static void TrackLifetime(ServerIdentity identity)
{
}
// Token: 0x04001844 RID: 6212
[Token(Token = "0x4001844")]
private static TimeSpan _leaseManagerPollTime;
// Token: 0x04001845 RID: 6213
[Token(Token = "0x4001845")]
private static TimeSpan _leaseTime;
// Token: 0x04001846 RID: 6214
[Token(Token = "0x4001846")]
private static TimeSpan _renewOnCallTime;
// Token: 0x04001847 RID: 6215
[Token(Token = "0x4001847")]
private static TimeSpan _sponsorshipTimeout;
// Token: 0x04001848 RID: 6216
[Token(Token = "0x4001848")]
private static LeaseManager _leaseManager;
}
}