Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Threading/CancellationTokenSource.cs
T
2026-04-10 22:50:51 +02:00

340 lines
13 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Signals to a <see cref="T:System.Threading.CancellationToken" /> that it should be canceled.</summary>
// Token: 0x02000303 RID: 771
[Token(Token = "0x2000303")]
[ComVisible(false)]
public class CancellationTokenSource : IDisposable
{
// Token: 0x06001C96 RID: 7318 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C96")]
[Address(RVA = "0x291E3E0", Offset = "0x291D1E0", VA = "0x18291E3E0")]
private static void LinkedTokenCancelDelegate(object source)
{
}
/// <summary>Gets whether cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource" />.</summary>
/// <returns>
/// <see langword="true" /> if cancellation has been requested for this <see cref="T:System.Threading.CancellationTokenSource" />; otherwise, <see langword="false" />.</returns>
// Token: 0x170003D6 RID: 982
// (get) Token: 0x06001C97 RID: 7319 RVA: 0x00012A20 File Offset: 0x00010C20
[Token(Token = "0x170003D6")]
public bool IsCancellationRequested
{
[Token(Token = "0x6001C97")]
[Address(RVA = "0x291EB10", Offset = "0x291D910", VA = "0x18291EB10")]
get
{
return default(bool);
}
}
// Token: 0x170003D7 RID: 983
// (get) Token: 0x06001C98 RID: 7320 RVA: 0x00012A38 File Offset: 0x00010C38
[Token(Token = "0x170003D7")]
internal bool IsCancellationCompleted
{
[Token(Token = "0x6001C98")]
[Address(RVA = "0x291EAF0", Offset = "0x291D8F0", VA = "0x18291EAF0")]
get
{
return default(bool);
}
}
// Token: 0x170003D8 RID: 984
// (get) Token: 0x06001C99 RID: 7321 RVA: 0x00012A50 File Offset: 0x00010C50
[Token(Token = "0x170003D8")]
internal bool IsDisposed
{
[Token(Token = "0x6001C99")]
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
get
{
return default(bool);
}
}
// Token: 0x170003D9 RID: 985
// (get) Token: 0x06001C9B RID: 7323 RVA: 0x00012A68 File Offset: 0x00010C68
// (set) Token: 0x06001C9A RID: 7322 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003D9")]
internal int ThreadIDExecutingCallbacks
{
[Token(Token = "0x6001C9B")]
[Address(RVA = "0x291EB30", Offset = "0x291D930", VA = "0x18291EB30")]
get
{
return 0;
}
[Token(Token = "0x6001C9A")]
[Address(RVA = "0x291EBB0", Offset = "0x291D9B0", VA = "0x18291EBB0")]
set
{
}
}
/// <summary>Gets the <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.CancellationTokenSource" />.</summary>
/// <returns>The <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.CancellationTokenSource" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The token source has been disposed.</exception>
// Token: 0x170003DA RID: 986
// (get) Token: 0x06001C9C RID: 7324 RVA: 0x00012A80 File Offset: 0x00010C80
[Token(Token = "0x170003DA")]
public CancellationToken Token
{
[Token(Token = "0x6001C9C")]
[Address(RVA = "0x291EB50", Offset = "0x291D950", VA = "0x18291EB50")]
get
{
return default(CancellationToken);
}
}
// Token: 0x170003DB RID: 987
// (get) Token: 0x06001C9D RID: 7325 RVA: 0x00012A98 File Offset: 0x00010C98
[Token(Token = "0x170003DB")]
internal bool CanBeCanceled
{
[Token(Token = "0x6001C9D")]
[Address(RVA = "0x291EAD0", Offset = "0x291D8D0", VA = "0x18291EAD0")]
get
{
return default(bool);
}
}
// Token: 0x170003DC RID: 988
// (get) Token: 0x06001C9E RID: 7326 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170003DC")]
internal CancellationCallbackInfo ExecutingCallback
{
[Token(Token = "0x6001C9E")]
[Address(RVA = "0x18B6660", Offset = "0x18B5460", VA = "0x1818B6660")]
get
{
return null;
}
}
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.CancellationTokenSource" /> class.</summary>
// Token: 0x06001C9F RID: 7327 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C9F")]
[Address(RVA = "0x291EA50", Offset = "0x291D850", VA = "0x18291EA50")]
public CancellationTokenSource()
{
}
// Token: 0x06001CA0 RID: 7328 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA0")]
[Address(RVA = "0x291EA90", Offset = "0x291D890", VA = "0x18291EA90")]
private CancellationTokenSource(bool set)
{
}
/// <summary>Communicates a request for cancellation.</summary>
/// <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
/// <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken" />.</exception>
// Token: 0x06001CA1 RID: 7329 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA1")]
[Address(RVA = "0x291D650", Offset = "0x291C450", VA = "0x18291D650")]
public void Cancel()
{
}
/// <summary>Communicates a request for cancellation, and specifies whether remaining callbacks and cancelable operations should be processed if an exception occurs.</summary>
/// <param name="throwOnFirstException">
/// <see langword="true" /> if exceptions should immediately propagate; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ObjectDisposedException">This <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
/// <exception cref="T:System.AggregateException">An aggregate exception containing all the exceptions thrown by the registered callbacks on the associated <see cref="T:System.Threading.CancellationToken" />.</exception>
// Token: 0x06001CA2 RID: 7330 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA2")]
[Address(RVA = "0x291D6C0", Offset = "0x291C4C0", VA = "0x18291D6C0")]
public void Cancel(bool throwOnFirstException)
{
}
// Token: 0x06001CA3 RID: 7331 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA3")]
[Address(RVA = "0x291E6D0", Offset = "0x291D4D0", VA = "0x18291E6D0")]
private static void TimerCallbackLogic(object obj)
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Threading.CancellationTokenSource" /> class.</summary>
// Token: 0x06001CA4 RID: 7332 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA4")]
[Address(RVA = "0x291DAA0", Offset = "0x291C8A0", VA = "0x18291DAA0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Threading.CancellationTokenSource" /> class and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06001CA5 RID: 7333 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA5")]
[Address(RVA = "0x291DB10", Offset = "0x291C910", VA = "0x18291DB10", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x06001CA6 RID: 7334 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA6")]
[Address(RVA = "0x291E600", Offset = "0x291D400", VA = "0x18291E600")]
internal void ThrowIfDisposed()
{
}
// Token: 0x06001CA7 RID: 7335 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CA7")]
[Address(RVA = "0x291E660", Offset = "0x291D460", VA = "0x18291E660")]
private static void ThrowObjectDisposedException()
{
}
// Token: 0x06001CA8 RID: 7336 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001CA8")]
[Address(RVA = "0x291DFC0", Offset = "0x291CDC0", VA = "0x18291DFC0")]
internal static CancellationTokenSource InternalGetStaticSource(bool set)
{
return null;
}
// Token: 0x06001CA9 RID: 7337 RVA: 0x00012AB0 File Offset: 0x00010CB0
[Token(Token = "0x6001CA9")]
[Address(RVA = "0x291E060", Offset = "0x291CE60", VA = "0x18291E060")]
internal CancellationTokenRegistration InternalRegister(Action<object> callback, object stateForCallback, SynchronizationContext targetSyncContext, ExecutionContext executionContext)
{
return default(CancellationTokenRegistration);
}
// Token: 0x06001CAA RID: 7338 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CAA")]
[Address(RVA = "0x291E4E0", Offset = "0x291D2E0", VA = "0x18291E4E0")]
private void NotifyCancellation(bool throwOnFirstException)
{
}
// Token: 0x06001CAB RID: 7339 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CAB")]
[Address(RVA = "0x291DC00", Offset = "0x291CA00", VA = "0x18291DC00")]
private void ExecuteCallbackHandlers(bool throwOnFirstException)
{
}
// Token: 0x06001CAC RID: 7340 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CAC")]
[Address(RVA = "0x291D730", Offset = "0x291C530", VA = "0x18291D730")]
private void CancellationCallbackCoreWork_OnSyncContext(object obj)
{
}
// Token: 0x06001CAD RID: 7341 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CAD")]
[Address(RVA = "0x291D7B0", Offset = "0x291C5B0", VA = "0x18291D7B0")]
private void CancellationCallbackCoreWork(CancellationCallbackCoreWorkArguments args)
{
}
/// <summary>Creates a <see cref="T:System.Threading.CancellationTokenSource" /> that will be in the canceled state when any of the source tokens are in the canceled state.</summary>
/// <param name="token1">The first cancellation token to observe.</param>
/// <param name="token2">The second cancellation token to observe.</param>
/// <returns>A <see cref="T:System.Threading.CancellationTokenSource" /> that is linked to the source tokens.</returns>
/// <exception cref="T:System.ObjectDisposedException">A <see cref="T:System.Threading.CancellationTokenSource" /> associated with one of the source tokens has been disposed.</exception>
// Token: 0x06001CAE RID: 7342 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001CAE")]
[Address(RVA = "0x291D880", Offset = "0x291C680", VA = "0x18291D880")]
public static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)
{
return null;
}
// Token: 0x06001CAF RID: 7343 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001CAF")]
[Address(RVA = "0x291E800", Offset = "0x291D600", VA = "0x18291E800")]
internal void WaitForCallbackToComplete(CancellationCallbackInfo callbackInfo)
{
}
// Token: 0x04001056 RID: 4182
[Token(Token = "0x4001056")]
private static readonly CancellationTokenSource _staticSource_Set;
// Token: 0x04001057 RID: 4183
[Token(Token = "0x4001057")]
private static readonly CancellationTokenSource _staticSource_NotCancelable;
// Token: 0x04001058 RID: 4184
[Token(Token = "0x4001058")]
private static readonly int s_nLists;
// Token: 0x04001059 RID: 4185
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001059")]
private ManualResetEvent m_kernelEvent;
// Token: 0x0400105A RID: 4186
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x400105A")]
private SparselyPopulatedArray<CancellationCallbackInfo>[] m_registeredCallbacksLists;
// Token: 0x0400105B RID: 4187
[Token(Token = "0x400105B")]
private const int CANNOT_BE_CANCELED = 0;
// Token: 0x0400105C RID: 4188
[Token(Token = "0x400105C")]
private const int NOT_CANCELED = 1;
// Token: 0x0400105D RID: 4189
[Token(Token = "0x400105D")]
private const int NOTIFYING = 2;
// Token: 0x0400105E RID: 4190
[Token(Token = "0x400105E")]
private const int NOTIFYINGCOMPLETE = 3;
// Token: 0x0400105F RID: 4191
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400105F")]
private int m_state;
// Token: 0x04001060 RID: 4192
[global::Cpp2IlInjected.FieldOffset(Offset = "0x24")]
[Token(Token = "0x4001060")]
private int m_threadIDExecutingCallbacks;
// Token: 0x04001061 RID: 4193
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001061")]
private bool m_disposed;
// Token: 0x04001062 RID: 4194
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001062")]
private CancellationTokenRegistration[] m_linkingRegistrations;
// Token: 0x04001063 RID: 4195
[Token(Token = "0x4001063")]
private static readonly Action<object> s_LinkedTokenCancelDelegate;
// Token: 0x04001064 RID: 4196
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001064")]
private CancellationCallbackInfo m_executingCallback;
// Token: 0x04001065 RID: 4197
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001065")]
private Timer m_timer;
// Token: 0x04001066 RID: 4198
[Token(Token = "0x4001066")]
private static readonly TimerCallback s_timerCallback;
}
}