using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// Propagates notification that operations should be canceled.
// Token: 0x0200031B RID: 795
[Token(Token = "0x200031B")]
[DebuggerDisplay("IsCancellationRequested = {IsCancellationRequested}")]
[ComVisible(false)]
public struct CancellationToken
{
/// Returns an empty value.
/// An empty cancellation token.
// 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);
}
}
/// Gets whether cancellation has been requested for this token.
///
/// if cancellation has been requested for this token; otherwise, .
// 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);
}
}
/// Gets whether this token is capable of being in the canceled state.
///
/// if this token is capable of being in the canceled state; otherwise, .
// 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)
{
}
/// Initializes the .
/// The canceled state for the token.
// 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)
{
}
/// Registers a delegate that will be called when this is canceled.
/// The delegate to be executed when the is canceled.
/// The instance that can be used to unregister the callback.
/// The associated has been disposed.
///
/// is null.
// 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);
}
/// Registers a delegate that will be called when this is canceled.
/// The delegate to be executed when the is canceled.
/// The state to pass to the when the delegate is invoked. This may be null.
/// The instance that can be used to unregister the callback.
/// The associated has been disposed.
///
/// is null.
// Token: 0x06001E83 RID: 7811 RVA: 0x00014C88 File Offset: 0x00012E88
[Token(Token = "0x6001E83")]
[Address(RVA = "0xF29E80", Offset = "0xF28E80", VA = "0x180F29E80")]
public CancellationTokenRegistration Register(Action