using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading
{
/// Propagates notification that operations should be canceled.
// Token: 0x02000301 RID: 769
[Token(Token = "0x2000301")]
[DebuggerDisplay("IsCancellationRequested = {IsCancellationRequested}")]
[ComVisible(false)]
public struct CancellationToken
{
/// Returns an empty value.
/// An empty cancellation token.
// Token: 0x170003D3 RID: 979
// (get) Token: 0x06001C7B RID: 7291 RVA: 0x00012888 File Offset: 0x00010A88
[Token(Token = "0x170003D3")]
public static CancellationToken None
{
[Token(Token = "0x6001C7B")]
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630")]
get
{
return default(CancellationToken);
}
}
/// Gets whether cancellation has been requested for this token.
///
/// if cancellation has been requested for this token; otherwise, .
// Token: 0x170003D4 RID: 980
// (get) Token: 0x06001C7C RID: 7292 RVA: 0x000128A0 File Offset: 0x00010AA0
[Token(Token = "0x170003D4")]
public bool IsCancellationRequested
{
[Token(Token = "0x6001C7C")]
[Address(RVA = "0x291F5B0", Offset = "0x291E3B0", VA = "0x18291F5B0")]
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: 0x170003D5 RID: 981
// (get) Token: 0x06001C7D RID: 7293 RVA: 0x000128B8 File Offset: 0x00010AB8
[Token(Token = "0x170003D5")]
public bool CanBeCanceled
{
[Token(Token = "0x6001C7D")]
[Address(RVA = "0x291F580", Offset = "0x291E380", VA = "0x18291F580")]
get
{
return default(bool);
}
}
// Token: 0x06001C7E RID: 7294 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C7E")]
[Address(RVA = "0x461A30", Offset = "0x460830", VA = "0x180461A30")]
internal CancellationToken(CancellationTokenSource source)
{
}
/// Initializes the .
/// The canceled state for the token.
// Token: 0x06001C7F RID: 7295 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C7F")]
[Address(RVA = "0x291F510", Offset = "0x291E310", VA = "0x18291F510")]
public CancellationToken(bool canceled)
{
}
// Token: 0x06001C80 RID: 7296 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001C80")]
[Address(RVA = "0x291EBE0", Offset = "0x291D9E0", VA = "0x18291EBE0")]
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: 0x06001C81 RID: 7297 RVA: 0x000128D0 File Offset: 0x00010AD0
[Token(Token = "0x6001C81")]
[Address(RVA = "0x291EF40", Offset = "0x291DD40", VA = "0x18291EF40")]
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: 0x06001C82 RID: 7298 RVA: 0x000128E8 File Offset: 0x00010AE8
[Token(Token = "0x6001C82")]
[Address(RVA = "0x291F080", Offset = "0x291DE80", VA = "0x18291F080")]
public CancellationTokenRegistration Register(Action