47 lines
2.0 KiB
C#
47 lines
2.0 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Threading.Tasks
|
|
{
|
|
/// <summary>Represents an exception used to communicate task cancellation.</summary>
|
|
// Token: 0x02000383 RID: 899
|
|
[Token(Token = "0x2000383")]
|
|
[Serializable]
|
|
public class TaskCanceledException : OperationCanceledException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException" /> class with a system-supplied message that describes the error.</summary>
|
|
// Token: 0x06001FB4 RID: 8116 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FB4")]
|
|
[Address(RVA = "0x1D9BAC0", Offset = "0x1D9A8C0", VA = "0x181D9BAC0")]
|
|
public TaskCanceledException()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException" /> class with a reference to the <see cref="T:System.Threading.Tasks.Task" /> that has been canceled.</summary>
|
|
/// <param name="task">A task that has been canceled.</param>
|
|
// Token: 0x06001FB5 RID: 8117 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FB5")]
|
|
[Address(RVA = "0x1D9BB10", Offset = "0x1D9A910", VA = "0x181D9BB10")]
|
|
public TaskCanceledException(Task task)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskCanceledException" /> class with serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data.</param>
|
|
/// <param name="context">The contextual information about the source or destination.</param>
|
|
// Token: 0x06001FB6 RID: 8118 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001FB6")]
|
|
[Address(RVA = "0x4E7140", Offset = "0x4E5F40", VA = "0x1804E7140")]
|
|
protected TaskCanceledException(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400122E RID: 4654
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400122E")]
|
|
[NonSerialized]
|
|
private Task m_canceledTask;
|
|
}
|
|
}
|