Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

250 lines
12 KiB
C#

using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// <summary>Propagates notification that operations should be canceled.</summary>
// Token: 0x0200031B RID: 795
[Token(Token = "0x200031B")]
[DebuggerDisplay("IsCancellationRequested = {IsCancellationRequested}")]
[ComVisible(false)]
public struct CancellationToken
{
/// <summary>Returns an empty <see cref="T:System.Threading.CancellationToken" /> value.</summary>
/// <returns>An empty cancellation token.</returns>
// Token: 0x17000449 RID: 1097
// (get) Token: 0x06001E7C RID: 7804 RVA: 0x00014C28 File Offset: 0x00012E28
[Token(Token = "0x17000449")]
public static CancellationToken None
{
[Token(Token = "0x6001E7C")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0")]
get
{
return default(CancellationToken);
}
}
/// <summary>Gets whether cancellation has been requested for this token.</summary>
/// <returns>
/// <see langword="true" /> if cancellation has been requested for this token; otherwise, <see langword="false" />.</returns>
// Token: 0x1700044A RID: 1098
// (get) Token: 0x06001E7D RID: 7805 RVA: 0x00014C40 File Offset: 0x00012E40
[Token(Token = "0x1700044A")]
public bool IsCancellationRequested
{
[Token(Token = "0x6001E7D")]
[Address(RVA = "0xF2A380", Offset = "0xF29380", VA = "0x180F2A380")]
get
{
return default(bool);
}
}
/// <summary>Gets whether this token is capable of being in the canceled state.</summary>
/// <returns>
/// <see langword="true" /> if this token is capable of being in the canceled state; otherwise, <see langword="false" />.</returns>
// Token: 0x1700044B RID: 1099
// (get) Token: 0x06001E7E RID: 7806 RVA: 0x00014C58 File Offset: 0x00012E58
[Token(Token = "0x1700044B")]
public bool CanBeCanceled
{
[Token(Token = "0x6001E7E")]
[Address(RVA = "0xF2A350", Offset = "0xF29350", VA = "0x180F2A350")]
get
{
return default(bool);
}
}
// Token: 0x06001E7F RID: 7807 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E7F")]
[Address(RVA = "0x593200", Offset = "0x592200", VA = "0x180593200")]
internal CancellationToken(CancellationTokenSource source)
{
}
/// <summary>Initializes the <see cref="T:System.Threading.CancellationToken" />.</summary>
/// <param name="canceled">The canceled state for the token.</param>
// Token: 0x06001E80 RID: 7808 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E80")]
[Address(RVA = "0xF2A2E0", Offset = "0xF292E0", VA = "0x180F2A2E0")]
public CancellationToken(bool canceled)
{
}
// Token: 0x06001E81 RID: 7809 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E81")]
[Address(RVA = "0xF299E0", Offset = "0xF289E0", VA = "0x180F299E0")]
private static void ActionToActionObjShunt(object obj)
{
}
/// <summary>Registers a delegate that will be called when this <see cref="T:System.Threading.CancellationToken" /> is canceled.</summary>
/// <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken" /> is canceled.</param>
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration" /> instance that can be used to unregister the callback.</returns>
/// <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callback" /> is null.</exception>
// Token: 0x06001E82 RID: 7810 RVA: 0x00014C70 File Offset: 0x00012E70
[Token(Token = "0x6001E82")]
[Address(RVA = "0xF29D40", Offset = "0xF28D40", VA = "0x180F29D40")]
public CancellationTokenRegistration Register(Action callback)
{
return default(CancellationTokenRegistration);
}
/// <summary>Registers a delegate that will be called when this <see cref="T:System.Threading.CancellationToken" /> is canceled.</summary>
/// <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken" /> is canceled.</param>
/// <param name="state">The state to pass to the <paramref name="callback" /> when the delegate is invoked. This may be null.</param>
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration" /> instance that can be used to unregister the callback.</returns>
/// <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callback" /> is null.</exception>
// Token: 0x06001E83 RID: 7811 RVA: 0x00014C88 File Offset: 0x00012E88
[Token(Token = "0x6001E83")]
[Address(RVA = "0xF29E80", Offset = "0xF28E80", VA = "0x180F29E80")]
public CancellationTokenRegistration Register(Action<object> callback, object state)
{
return default(CancellationTokenRegistration);
}
/// <summary>Registers a delegate that will be called when this <see cref="T:System.Threading.CancellationToken" /> is canceled.</summary>
/// <param name="callback">The delegate to be executed when the <see cref="T:System.Threading.CancellationToken" /> is canceled.</param>
/// <param name="state">The state to pass to the <paramref name="callback" /> when the delegate is invoked. This may be null.</param>
/// <param name="useSynchronizationContext">A Boolean value that indicates whether to capture the current <see cref="T:System.Threading.SynchronizationContext" /> and use it when invoking the <paramref name="callback" />.</param>
/// <returns>The <see cref="T:System.Threading.CancellationTokenRegistration" /> instance that can be used to unregister the callback.</returns>
/// <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="callback" /> is null.</exception>
// Token: 0x06001E84 RID: 7812 RVA: 0x00014CA0 File Offset: 0x00012EA0
[Token(Token = "0x6001E84")]
[Address(RVA = "0xF29E30", Offset = "0xF28E30", VA = "0x180F29E30")]
public CancellationTokenRegistration Register(Action<object> callback, object state, bool useSynchronizationContext)
{
return default(CancellationTokenRegistration);
}
// Token: 0x06001E85 RID: 7813 RVA: 0x00014CB8 File Offset: 0x00012EB8
[Token(Token = "0x6001E85")]
[Address(RVA = "0xF29D00", Offset = "0xF28D00", VA = "0x180F29D00")]
internal CancellationTokenRegistration InternalRegisterWithoutEC(Action<object> callback, object state)
{
return default(CancellationTokenRegistration);
}
// Token: 0x06001E86 RID: 7814 RVA: 0x00014CD0 File Offset: 0x00012ED0
[Token(Token = "0x6001E86")]
[Address(RVA = "0xF29F50", Offset = "0xF28F50", VA = "0x180F29F50")]
private CancellationTokenRegistration Register(Action<object> callback, object state, bool useSynchronizationContext, bool useExecutionContext)
{
return default(CancellationTokenRegistration);
}
/// <summary>Determines whether the current <see cref="T:System.Threading.CancellationToken" /> instance is equal to the specified token.</summary>
/// <param name="other">The other <see cref="T:System.Threading.CancellationToken" /> to compare with this instance.</param>
/// <returns>
/// <see langword="true" /> if the instances are equal; otherwise, <see langword="false" />. See the Remarks section for more information.</returns>
// Token: 0x06001E87 RID: 7815 RVA: 0x00014CE8 File Offset: 0x00012EE8
[Token(Token = "0x6001E87")]
[Address(RVA = "0xF29AC0", Offset = "0xF28AC0", VA = "0x180F29AC0")]
public bool Equals(CancellationToken other)
{
return default(bool);
}
/// <summary>Determines whether the current <see cref="T:System.Threading.CancellationToken" /> instance is equal to the specified <see cref="T:System.Object" />.</summary>
/// <param name="other">The other object to compare with this instance.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="other" /> is a <see cref="T:System.Threading.CancellationToken" /> and if the two instances are equal; otherwise, <see langword="false" />. See the Remarks section for more information.</returns>
/// <exception cref="T:System.ObjectDisposedException">An associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
// Token: 0x06001E88 RID: 7816 RVA: 0x00014D00 File Offset: 0x00012F00
[Token(Token = "0x6001E88")]
[Address(RVA = "0xF29A30", Offset = "0xF28A30", VA = "0x180F29A30", Slot = "0")]
public override bool Equals(object other)
{
return default(bool);
}
/// <summary>Serves as a hash function for a <see cref="T:System.Threading.CancellationToken" />.</summary>
/// <returns>A hash code for the current <see cref="T:System.Threading.CancellationToken" /> instance.</returns>
// Token: 0x06001E89 RID: 7817 RVA: 0x00014D18 File Offset: 0x00012F18
[Token(Token = "0x6001E89")]
[Address(RVA = "0xF29C30", Offset = "0xF28C30", VA = "0x180F29C30", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
/// <summary>Determines whether two <see cref="T:System.Threading.CancellationToken" /> instances are equal.</summary>
/// <param name="left">The first instance.</param>
/// <param name="right">The second instance.</param>
/// <returns>
/// <see langword="true" /> if the instances are equal; otherwise, <see langword="false" /> See the Remarks section for more information.</returns>
/// <exception cref="T:System.ObjectDisposedException">An associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
// Token: 0x06001E8A RID: 7818 RVA: 0x00014D30 File Offset: 0x00012F30
[Token(Token = "0x6001E8A")]
[Address(RVA = "0xF2A3B0", Offset = "0xF293B0", VA = "0x180F2A3B0")]
public static bool operator ==(CancellationToken left, CancellationToken right)
{
return default(bool);
}
/// <summary>Determines whether two <see cref="T:System.Threading.CancellationToken" /> instances are not equal.</summary>
/// <param name="left">The first instance.</param>
/// <param name="right">The second instance.</param>
/// <returns>
/// <see langword="true" /> if the instances are not equal; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">An associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
// Token: 0x06001E8B RID: 7819 RVA: 0x00014D48 File Offset: 0x00012F48
[Token(Token = "0x6001E8B")]
[Address(RVA = "0xF2A3D0", Offset = "0xF293D0", VA = "0x180F2A3D0")]
public static bool operator !=(CancellationToken left, CancellationToken right)
{
return default(bool);
}
/// <summary>Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</summary>
/// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
/// <exception cref="T:System.ObjectDisposedException">The associated <see cref="T:System.Threading.CancellationTokenSource" /> has been disposed.</exception>
// Token: 0x06001E8C RID: 7820 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E8C")]
[Address(RVA = "0xF2A0F0", Offset = "0xF290F0", VA = "0x180F2A0F0")]
public void ThrowIfCancellationRequested()
{
}
// Token: 0x06001E8D RID: 7821 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E8D")]
[Address(RVA = "0xF2A130", Offset = "0xF29130", VA = "0x180F2A130")]
internal void ThrowIfSourceDisposed()
{
}
// Token: 0x06001E8E RID: 7822 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E8E")]
[Address(RVA = "0xF2A200", Offset = "0xF29200", VA = "0x180F2A200")]
private void ThrowOperationCanceledException()
{
}
// Token: 0x06001E8F RID: 7823 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001E8F")]
[Address(RVA = "0xF2A190", Offset = "0xF29190", VA = "0x180F2A190")]
private static void ThrowObjectDisposedException()
{
}
// Token: 0x0400110D RID: 4365
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x400110D")]
private CancellationTokenSource m_source;
// Token: 0x0400110E RID: 4366
[Token(Token = "0x400110E")]
private static readonly Action<object> s_ActionToActionObjShunt;
}
}