This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 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: 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);
}
}
@@ -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: 0x020004C5 RID: 1221
[Token(Token = "0x20004C5")]
[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: 0x060027EC RID: 10220
[Token(Token = "0x60027EC")]
[Address(Slot = "0")]
TimeSpan Renewal(ILease lease);
}
}
@@ -0,0 +1,145 @@
using System;
using System.Collections;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
// Token: 0x020004C6 RID: 1222
[Token(Token = "0x20004C6")]
internal class Lease : MarshalByRefObject, ILease
{
// Token: 0x060027ED RID: 10221 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027ED")]
[Address(RVA = "0x237C220", Offset = "0x237B020", VA = "0x18237C220")]
public Lease()
{
}
// Token: 0x17000584 RID: 1412
// (get) Token: 0x060027EE RID: 10222 RVA: 0x000161E8 File Offset: 0x000143E8
[Token(Token = "0x17000584")]
public TimeSpan CurrentLeaseTime
{
[Token(Token = "0x60027EE")]
[Address(RVA = "0x237C3C0", Offset = "0x237B1C0", VA = "0x18237C3C0", Slot = "6")]
get
{
return default(TimeSpan);
}
}
// Token: 0x17000585 RID: 1413
// (get) Token: 0x060027EF RID: 10223 RVA: 0x00016200 File Offset: 0x00014400
[Token(Token = "0x17000585")]
public LeaseState CurrentState
{
[Token(Token = "0x60027EF")]
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310", Slot = "7")]
get
{
return LeaseState.Null;
}
}
// Token: 0x060027F0 RID: 10224 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027F0")]
[Address(RVA = "0x237B9C0", Offset = "0x237A7C0", VA = "0x18237B9C0")]
public void Activate()
{
}
// Token: 0x17000586 RID: 1414
// (get) Token: 0x060027F1 RID: 10225 RVA: 0x00016218 File Offset: 0x00014418
[Token(Token = "0x17000586")]
public TimeSpan RenewOnCallTime
{
[Token(Token = "0x60027F1")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "8")]
get
{
return default(TimeSpan);
}
}
// Token: 0x060027F2 RID: 10226 RVA: 0x00016230 File Offset: 0x00014430
[Token(Token = "0x60027F2")]
[Address(RVA = "0x237BE80", Offset = "0x237AC80", VA = "0x18237BE80", Slot = "9")]
public TimeSpan Renew(TimeSpan renewalTime)
{
return default(TimeSpan);
}
// Token: 0x060027F3 RID: 10227 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027F3")]
[Address(RVA = "0x237BF60", Offset = "0x237AD60", VA = "0x18237BF60", Slot = "10")]
public void Unregister(ISponsor obj)
{
}
// Token: 0x060027F4 RID: 10228 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027F4")]
[Address(RVA = "0x237C080", Offset = "0x237AE80", VA = "0x18237C080")]
internal void UpdateState()
{
}
// Token: 0x060027F5 RID: 10229 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027F5")]
[Address(RVA = "0x237B9D0", Offset = "0x237A7D0", VA = "0x18237B9D0")]
private void CheckNextSponsor()
{
}
// Token: 0x060027F6 RID: 10230 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027F6")]
[Address(RVA = "0x237BC30", Offset = "0x237AA30", VA = "0x18237BC30")]
private void ProcessSponsorResponse(object state, bool timedOut)
{
}
// Token: 0x04001770 RID: 6000
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001770")]
private DateTime _leaseExpireTime;
// Token: 0x04001771 RID: 6001
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001771")]
private LeaseState _currentState;
// Token: 0x04001772 RID: 6002
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001772")]
private TimeSpan _initialLeaseTime;
// Token: 0x04001773 RID: 6003
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001773")]
private TimeSpan _renewOnCallTime;
// Token: 0x04001774 RID: 6004
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001774")]
private TimeSpan _sponsorshipTimeout;
// Token: 0x04001775 RID: 6005
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001775")]
private ArrayList _sponsors;
// Token: 0x04001776 RID: 6006
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001776")]
private Queue _renewingSponsors;
// Token: 0x04001777 RID: 6007
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001777")]
private Lease.RenewalDelegate _renewalDelegate;
// Token: 0x020004C7 RID: 1223
// (Invoke) Token: 0x060027F8 RID: 10232
[Token(Token = "0x20004C7")]
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: 0x020004C8 RID: 1224
[Token(Token = "0x20004C8")]
internal class LeaseManager
{
// Token: 0x060027FB RID: 10235 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027FB")]
[Address(RVA = "0x237B1C0", Offset = "0x2379FC0", VA = "0x18237B1C0")]
public void SetPollTime(TimeSpan timeSpan)
{
}
// Token: 0x060027FC RID: 10236 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027FC")]
[Address(RVA = "0x237B420", Offset = "0x237A220", VA = "0x18237B420")]
public void TrackLifetime(ServerIdentity identity)
{
}
// Token: 0x060027FD RID: 10237 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027FD")]
[Address(RVA = "0x237B290", Offset = "0x237A090", VA = "0x18237B290")]
public void StartManager()
{
}
// Token: 0x060027FE RID: 10238 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027FE")]
[Address(RVA = "0x237B400", Offset = "0x237A200", VA = "0x18237B400")]
public void StopManager()
{
}
// Token: 0x060027FF RID: 10239 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60027FF")]
[Address(RVA = "0x237AF80", Offset = "0x2379D80", VA = "0x18237AF80")]
public void ManageLeases(object state)
{
}
// Token: 0x06002800 RID: 10240 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002800")]
[Address(RVA = "0x237B670", Offset = "0x237A470", VA = "0x18237B670")]
public LeaseManager()
{
}
// Token: 0x04001778 RID: 6008
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001778")]
private ArrayList _objects;
// Token: 0x04001779 RID: 6009
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001779")]
private Timer _timer;
}
}
@@ -0,0 +1,46 @@
using System;
using System.Runtime.Remoting.Messaging;
using Cpp2IlInjected;
namespace System.Runtime.Remoting.Lifetime
{
// Token: 0x020004C9 RID: 1225
[Token(Token = "0x20004C9")]
internal class LeaseSink : IMessageSink
{
// Token: 0x06002801 RID: 10241 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002801")]
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
public LeaseSink(IMessageSink nextSink)
{
}
// Token: 0x06002802 RID: 10242 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002802")]
[Address(RVA = "0x237B950", Offset = "0x237A750", VA = "0x18237B950", Slot = "4")]
public IMessage SyncProcessMessage(IMessage msg)
{
return null;
}
// Token: 0x06002803 RID: 10243 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002803")]
[Address(RVA = "0x237B6D0", Offset = "0x237A4D0", VA = "0x18237B6D0", Slot = "5")]
public IMessageCtrl AsyncProcessMessage(IMessage msg, IMessageSink replySink)
{
return null;
}
// Token: 0x06002804 RID: 10244 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002804")]
[Address(RVA = "0x237B750", Offset = "0x237A550", VA = "0x18237B750")]
private void RenewLease(IMessage msg)
{
}
// Token: 0x0400177A RID: 6010
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400177A")]
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: 0x020004CA RID: 1226
[Token(Token = "0x20004CA")]
[ComVisible(true)]
[Serializable]
public enum LeaseState
{
/// <summary>The lease is not initialized.</summary>
// Token: 0x0400177C RID: 6012
[Token(Token = "0x400177C")]
Null,
/// <summary>The lease has been created, but is not yet active.</summary>
// Token: 0x0400177D RID: 6013
[Token(Token = "0x400177D")]
Initial,
/// <summary>The lease is active and has not expired.</summary>
// Token: 0x0400177E RID: 6014
[Token(Token = "0x400177E")]
Active,
/// <summary>The lease has expired and is seeking sponsorship.</summary>
// Token: 0x0400177F RID: 6015
[Token(Token = "0x400177F")]
Renewing,
/// <summary>The lease has expired and cannot be renewed.</summary>
// Token: 0x04001780 RID: 6016
[Token(Token = "0x4001780")]
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: 0x020004CB RID: 1227
[Token(Token = "0x20004CB")]
[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: 0x17000587 RID: 1415
// (get) Token: 0x06002806 RID: 10246 RVA: 0x00016248 File Offset: 0x00014448
// (set) Token: 0x06002807 RID: 10247 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000587")]
public static TimeSpan LeaseManagerPollTime
{
[Token(Token = "0x6002806")]
[Address(RVA = "0x237C5E0", Offset = "0x237B3E0", VA = "0x18237C5E0")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002807")]
[Address(RVA = "0x237C760", Offset = "0x237B560", VA = "0x18237C760")]
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: 0x17000588 RID: 1416
// (get) Token: 0x06002808 RID: 10248 RVA: 0x00016260 File Offset: 0x00014460
// (set) Token: 0x06002809 RID: 10249 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000588")]
public static TimeSpan LeaseTime
{
[Token(Token = "0x6002808")]
[Address(RVA = "0x237C640", Offset = "0x237B440", VA = "0x18237C640")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x6002809")]
[Address(RVA = "0x237C7F0", Offset = "0x237B5F0", VA = "0x18237C7F0")]
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: 0x17000589 RID: 1417
// (get) Token: 0x0600280A RID: 10250 RVA: 0x00016278 File Offset: 0x00014478
// (set) Token: 0x0600280B RID: 10251 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000589")]
public static TimeSpan RenewOnCallTime
{
[Token(Token = "0x600280A")]
[Address(RVA = "0x237C6A0", Offset = "0x237B4A0", VA = "0x18237C6A0")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x600280B")]
[Address(RVA = "0x237C8B0", Offset = "0x237B6B0", VA = "0x18237C8B0")]
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: 0x1700058A RID: 1418
// (get) Token: 0x0600280C RID: 10252 RVA: 0x00016290 File Offset: 0x00014490
// (set) Token: 0x0600280D RID: 10253 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700058A")]
public static TimeSpan SponsorshipTimeout
{
[Token(Token = "0x600280C")]
[Address(RVA = "0x237C700", Offset = "0x237B500", VA = "0x18237C700")]
get
{
return default(TimeSpan);
}
[Token(Token = "0x600280D")]
[Address(RVA = "0x237C970", Offset = "0x237B770", VA = "0x18237C970")]
set
{
}
}
// Token: 0x0600280E RID: 10254 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600280E")]
[Address(RVA = "0x237C420", Offset = "0x237B220", VA = "0x18237C420")]
internal static void TrackLifetime(ServerIdentity identity)
{
}
// Token: 0x04001781 RID: 6017
[Token(Token = "0x4001781")]
private static TimeSpan _leaseManagerPollTime;
// Token: 0x04001782 RID: 6018
[Token(Token = "0x4001782")]
private static TimeSpan _leaseTime;
// Token: 0x04001783 RID: 6019
[Token(Token = "0x4001783")]
private static TimeSpan _renewOnCallTime;
// Token: 0x04001784 RID: 6020
[Token(Token = "0x4001784")]
private static TimeSpan _sponsorshipTimeout;
// Token: 0x04001785 RID: 6021
[Token(Token = "0x4001785")]
private static LeaseManager _leaseManager;
}
}