This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 additions and 0 deletions
@@ -0,0 +1,25 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200036F RID: 879
[Token(Token = "0x200036F")]
[FriendAccessAllowed]
internal enum AsyncCausalityStatus
{
// Token: 0x0400122A RID: 4650
[Token(Token = "0x400122A")]
Started,
// Token: 0x0400122B RID: 4651
[Token(Token = "0x400122B")]
Completed,
// Token: 0x0400122C RID: 4652
[Token(Token = "0x400122C")]
Canceled,
// Token: 0x0400122D RID: 4653
[Token(Token = "0x400122D")]
Error
}
}
@@ -0,0 +1,64 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000372 RID: 882
[Token(Token = "0x2000372")]
[FriendAccessAllowed]
internal static class AsyncCausalityTracer
{
// Token: 0x1700048B RID: 1163
// (get) Token: 0x0600209D RID: 8349 RVA: 0x00015BB8 File Offset: 0x00013DB8
[Token(Token = "0x1700048B")]
[FriendAccessAllowed]
internal static bool LoggingOn
{
[Token(Token = "0x600209D")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
[FriendAccessAllowed]
get
{
return default(bool);
}
}
// Token: 0x0600209E RID: 8350 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209E")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
[FriendAccessAllowed]
internal static void TraceOperationCreation(CausalityTraceLevel traceLevel, int taskId, string operationName, ulong relatedContext)
{
}
// Token: 0x0600209F RID: 8351 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600209F")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
[FriendAccessAllowed]
internal static void TraceOperationCompletion(CausalityTraceLevel traceLevel, int taskId, AsyncCausalityStatus status)
{
}
// Token: 0x060020A0 RID: 8352 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A0")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
internal static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation)
{
}
// Token: 0x060020A1 RID: 8353 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A1")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
internal static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work)
{
}
// Token: 0x060020A2 RID: 8354 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A2")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0")]
internal static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work)
{
}
}
}
@@ -0,0 +1,130 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003AB RID: 939
[Token(Token = "0x20003AB")]
internal class AwaitTaskContinuation : TaskContinuation, IThreadPoolWorkItem
{
// Token: 0x060021E5 RID: 8677 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E5")]
[Address(RVA = "0xB3EDA0", Offset = "0xB3DDA0", VA = "0x180B3EDA0")]
internal AwaitTaskContinuation(Action action, bool flowExecutionContext, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021E6 RID: 8678 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E6")]
[Address(RVA = "0xB3ED20", Offset = "0xB3DD20", VA = "0x180B3ED20")]
internal AwaitTaskContinuation(Action action, bool flowExecutionContext)
{
}
// Token: 0x060021E7 RID: 8679 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021E7")]
[Address(RVA = "0xB3E420", Offset = "0xB3D420", VA = "0x180B3E420")]
protected Task CreateTask(Action<object> action, object state, TaskScheduler scheduler)
{
return null;
}
// Token: 0x060021E8 RID: 8680 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E8")]
[Address(RVA = "0xB3EA60", Offset = "0xB3DA60", VA = "0x180B3EA60", Slot = "4")]
internal override void Run(Task task, bool canInlineContinuationTask)
{
}
// Token: 0x170004BF RID: 1215
// (get) Token: 0x060021E9 RID: 8681 RVA: 0x00016320 File Offset: 0x00014520
[Token(Token = "0x170004BF")]
internal static bool IsValidLocationForInlining
{
[Token(Token = "0x60021E9")]
[Address(RVA = "0xB3EE40", Offset = "0xB3DE40", VA = "0x180B3EE40")]
get
{
return default(bool);
}
}
// Token: 0x060021EA RID: 8682 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EA")]
[Address(RVA = "0xB3E530", Offset = "0xB3D530", VA = "0x180B3E530")]
private void ExecuteWorkItemHelper()
{
}
// Token: 0x060021EB RID: 8683 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EB")]
[Address(RVA = "0xB3EB20", Offset = "0xB3DB20", VA = "0x180B3EB20", Slot = "5")]
void IThreadPoolWorkItem.ExecuteWorkItem()
{
}
// Token: 0x060021EC RID: 8684 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EC")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "6")]
void IThreadPoolWorkItem.MarkAborted(ThreadAbortException tae)
{
}
// Token: 0x060021ED RID: 8685 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021ED")]
[Address(RVA = "0xB3E740", Offset = "0xB3D740", VA = "0x180B3E740")]
private static void InvokeAction(object state)
{
}
// Token: 0x060021EE RID: 8686 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021EE")]
[Address(RVA = "0xB3E640", Offset = "0xB3D640", VA = "0x180B3E640")]
protected static ContextCallback GetInvokeActionCallback()
{
return null;
}
// Token: 0x060021EF RID: 8687 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021EF")]
[Address(RVA = "0xB3E7A0", Offset = "0xB3D7A0", VA = "0x180B3E7A0")]
protected void RunCallback(ContextCallback callback, object state, ref Task currentTask)
{
}
// Token: 0x060021F0 RID: 8688 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F0")]
[Address(RVA = "0xB3E930", Offset = "0xB3D930", VA = "0x180B3E930")]
internal static void RunOrScheduleAction(Action action, bool allowInlining, ref Task currentTask)
{
}
// Token: 0x060021F1 RID: 8689 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F1")]
[Address(RVA = "0xB3ECA0", Offset = "0xB3DCA0", VA = "0x180B3ECA0")]
internal static void UnsafeScheduleAction(Action action, Task task)
{
}
// Token: 0x060021F2 RID: 8690 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F2")]
[Address(RVA = "0xB3EB50", Offset = "0xB3DB50", VA = "0x180B3EB50")]
protected static void ThrowAsyncIfNecessary(Exception exc)
{
}
// Token: 0x04001301 RID: 4865
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001301")]
private readonly ExecutionContext m_capturedContext;
// Token: 0x04001302 RID: 4866
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001302")]
protected readonly Action m_action;
// Token: 0x04001303 RID: 4867
[Token(Token = "0x4001303")]
private static ContextCallback s_invokeActionCallback;
}
}
@@ -0,0 +1,79 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000373 RID: 883
[Token(Token = "0x2000373")]
internal sealed class BeginEndAwaitableAdapter : ICriticalNotifyCompletion, INotifyCompletion
{
// Token: 0x060020A3 RID: 8355 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020A3")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
public BeginEndAwaitableAdapter GetAwaiter()
{
return null;
}
// Token: 0x1700048C RID: 1164
// (get) Token: 0x060020A4 RID: 8356 RVA: 0x00015BD0 File Offset: 0x00013DD0
[Token(Token = "0x1700048C")]
public bool IsCompleted
{
[Token(Token = "0x60020A4")]
[Address(RVA = "0xB3F180", Offset = "0xB3E180", VA = "0x180B3F180")]
get
{
return default(bool);
}
}
// Token: 0x060020A5 RID: 8357 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A5")]
[Address(RVA = "0xB3EFA0", Offset = "0xB3DFA0", VA = "0x180B3EFA0", Slot = "4")]
public void UnsafeOnCompleted(Action continuation)
{
}
// Token: 0x060020A6 RID: 8358 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A6")]
[Address(RVA = "0xB3EFA0", Offset = "0xB3DFA0", VA = "0x180B3EFA0", Slot = "5")]
public void OnCompleted(Action continuation)
{
}
// Token: 0x060020A7 RID: 8359 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020A7")]
[Address(RVA = "0xB3EF90", Offset = "0xB3DF90", VA = "0x180B3EF90")]
public IAsyncResult GetResult()
{
return null;
}
// Token: 0x060020A8 RID: 8360 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020A8")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public BeginEndAwaitableAdapter()
{
}
// Token: 0x04001238 RID: 4664
[Token(Token = "0x4001238")]
private static readonly Action CALLBACK_RAN;
// Token: 0x04001239 RID: 4665
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001239")]
private IAsyncResult _asyncResult;
// Token: 0x0400123A RID: 4666
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400123A")]
private Action _continuation;
// Token: 0x0400123B RID: 4667
[Token(Token = "0x400123B")]
public static readonly AsyncCallback Callback;
}
}
@@ -0,0 +1,26 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000370 RID: 880
[Token(Token = "0x2000370")]
internal enum CausalityRelation
{
// Token: 0x0400122F RID: 4655
[Token(Token = "0x400122F")]
AssignDelegate,
// Token: 0x04001230 RID: 4656
[Token(Token = "0x4001230")]
Join,
// Token: 0x04001231 RID: 4657
[Token(Token = "0x4001231")]
Choice,
// Token: 0x04001232 RID: 4658
[Token(Token = "0x4001232")]
Cancel,
// Token: 0x04001233 RID: 4659
[Token(Token = "0x4001233")]
Error
}
}
@@ -0,0 +1,20 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000371 RID: 881
[Token(Token = "0x2000371")]
internal enum CausalitySynchronousWork
{
// Token: 0x04001235 RID: 4661
[Token(Token = "0x4001235")]
CompletionNotification,
// Token: 0x04001236 RID: 4662
[Token(Token = "0x4001236")]
ProgressNotification,
// Token: 0x04001237 RID: 4663
[Token(Token = "0x4001237")]
Execution
}
}
@@ -0,0 +1,22 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200036E RID: 878
[Token(Token = "0x200036E")]
[FriendAccessAllowed]
internal enum CausalityTraceLevel
{
// Token: 0x04001226 RID: 4646
[Token(Token = "0x4001226")]
Required,
// Token: 0x04001227 RID: 4647
[Token(Token = "0x4001227")]
Important,
// Token: 0x04001228 RID: 4648
[Token(Token = "0x4001228")]
Verbose
}
}
@@ -0,0 +1,41 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000395 RID: 917
[Token(Token = "0x2000395")]
internal sealed class CompletionActionInvoker : IThreadPoolWorkItem
{
// Token: 0x060021AE RID: 8622 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021AE")]
[Address(RVA = "0x417DD0", Offset = "0x416DD0", VA = "0x180417DD0")]
internal CompletionActionInvoker(ITaskCompletionAction action, Task completingTask)
{
}
// Token: 0x060021AF RID: 8623 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021AF")]
[Address(RVA = "0xB3F480", Offset = "0xB3E480", VA = "0x180B3F480", Slot = "4")]
public void ExecuteWorkItem()
{
}
// Token: 0x060021B0 RID: 8624 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B0")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "5")]
public void MarkAborted(ThreadAbortException tae)
{
}
// Token: 0x040012C7 RID: 4807
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012C7")]
private readonly ITaskCompletionAction m_action;
// Token: 0x040012C8 RID: 4808
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012C8")]
private readonly Task m_completingTask;
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A4 RID: 932
[Token(Token = "0x20003A4")]
internal sealed class ContinuationResultTaskFromResultTask<TAntecedentResult, TResult> : Task<TResult>
{
// Token: 0x060021D1 RID: 8657 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D1")]
[Address(RVA = "0x2EFC130", Offset = "0x2EFB130", VA = "0x182EFC130")]
public ContinuationResultTaskFromResultTask(Task<TAntecedentResult> antecedent, Delegate function, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021D2 RID: 8658 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D2")]
[Address(RVA = "0x2EFBDF0", Offset = "0x2EFADF0", VA = "0x182EFBDF0", Slot = "21")]
internal override void InnerInvoke()
{
}
// Token: 0x040012F6 RID: 4854
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40012F6")]
private Task<TAntecedentResult> m_antecedent;
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A2 RID: 930
[Token(Token = "0x20003A2")]
internal sealed class ContinuationResultTaskFromTask<TResult> : Task<TResult>
{
// Token: 0x060021CD RID: 8653 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CD")]
[Address(RVA = "0x2EFC700", Offset = "0x2EFB700", VA = "0x182EFC700")]
public ContinuationResultTaskFromTask(Task antecedent, Delegate function, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021CE RID: 8654 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CE")]
[Address(RVA = "0x2EFC450", Offset = "0x2EFB450", VA = "0x182EFC450", Slot = "21")]
internal override void InnerInvoke()
{
}
// Token: 0x040012F4 RID: 4852
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40012F4")]
private Task m_antecedent;
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A3 RID: 931
[Token(Token = "0x20003A3")]
internal sealed class ContinuationTaskFromResultTask<TAntecedentResult> : Task
{
// Token: 0x060021CF RID: 8655 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CF")]
[Address(RVA = "0x2EFC990", Offset = "0x2EFB990", VA = "0x182EFC990")]
public ContinuationTaskFromResultTask(Task<TAntecedentResult> antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021D0 RID: 8656 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D0")]
[Address(RVA = "0x2EFC890", Offset = "0x2EFB890", VA = "0x182EFC890", Slot = "21")]
internal override void InnerInvoke()
{
}
// Token: 0x040012F5 RID: 4853
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40012F5")]
private Task<TAntecedentResult> m_antecedent;
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A1 RID: 929
[Token(Token = "0x20003A1")]
internal sealed class ContinuationTaskFromTask : Task
{
// Token: 0x060021CB RID: 8651 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CB")]
[Address(RVA = "0xB3F6B0", Offset = "0xB3E6B0", VA = "0x180B3F6B0")]
public ContinuationTaskFromTask(Task antecedent, Delegate action, object state, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021CC RID: 8652 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021CC")]
[Address(RVA = "0xB3F5B0", Offset = "0xB3E5B0", VA = "0x180B3F5B0", Slot = "21")]
internal override void InnerInvoke()
{
}
// Token: 0x040012F3 RID: 4851
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40012F3")]
private Task m_antecedent;
}
}
@@ -0,0 +1,15 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200039E RID: 926
[Token(Token = "0x200039E")]
internal interface ITaskCompletionAction
{
// Token: 0x060021BF RID: 8639
[Token(Token = "0x60021BF")]
[Address(Slot = "0")]
void Invoke(Task completingTask);
}
}
@@ -0,0 +1,32 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000389 RID: 905
[Token(Token = "0x2000389")]
[StructLayout(3)]
internal struct IndexRange
{
// Token: 0x04001272 RID: 4722
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001272")]
internal long m_nFromInclusive;
// Token: 0x04001273 RID: 4723
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4001273")]
internal long m_nToExclusive;
// Token: 0x04001274 RID: 4724
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001274")]
internal Shared<long> m_nSharedCurrentIndexOffset;
// Token: 0x04001275 RID: 4725
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001275")]
internal int m_bRangeFinished;
}
}
@@ -0,0 +1,40 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200039A RID: 922
[Token(Token = "0x200039A")]
[Flags]
[Serializable]
internal enum InternalTaskOptions
{
// Token: 0x040012D6 RID: 4822
[Token(Token = "0x40012D6")]
None = 0,
// Token: 0x040012D7 RID: 4823
[Token(Token = "0x40012D7")]
InternalOptionsMask = 65280,
// Token: 0x040012D8 RID: 4824
[Token(Token = "0x40012D8")]
ChildReplica = 256,
// Token: 0x040012D9 RID: 4825
[Token(Token = "0x40012D9")]
ContinuationTask = 512,
// Token: 0x040012DA RID: 4826
[Token(Token = "0x40012DA")]
PromiseTask = 1024,
// Token: 0x040012DB RID: 4827
[Token(Token = "0x40012DB")]
SelfReplicating = 2048,
// Token: 0x040012DC RID: 4828
[Token(Token = "0x40012DC")]
LazyCancellation = 4096,
// Token: 0x040012DD RID: 4829
[Token(Token = "0x40012DD")]
QueuedByRuntime = 8192,
// Token: 0x040012DE RID: 4830
[Token(Token = "0x40012DE")]
DoNotDispose = 16384
}
}
@@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides support for parallel loops and regions.</summary>
// Token: 0x02000381 RID: 897
[Token(Token = "0x2000381")]
public static class Parallel
{
/// <summary>Executes a <see langword="for" /> (<see langword="For" /> in Visual Basic) loop in which iterations may run in parallel.</summary>
/// <param name="fromInclusive">The start index, inclusive.</param>
/// <param name="toExclusive">The end index, exclusive.</param>
/// <param name="body">The delegate that is invoked once per iteration.</param>
/// <returns>A structure that contains information about which portion of the loop completed.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="body" /> argument is <see langword="null" />.</exception>
/// <exception cref="T:System.AggregateException">The exception that contains all the individual exceptions thrown on all threads.</exception>
// Token: 0x060020EB RID: 8427 RVA: 0x00015CC0 File Offset: 0x00013EC0
[Token(Token = "0x60020EB")]
[Address(RVA = "0xB40D20", Offset = "0xB3FD20", VA = "0x180B40D20")]
public static ParallelLoopResult For(int fromInclusive, int toExclusive, Action<int> body)
{
return default(ParallelLoopResult);
}
// Token: 0x060020EC RID: 8428 RVA: 0x00015CD8 File Offset: 0x00013ED8
[Token(Token = "0x60020EC")]
[Address(RVA = "0x25FAAF0", Offset = "0x25F9AF0", VA = "0x1825FAAF0")]
private static ParallelLoopResult ForWorker<TLocal>(int fromInclusive, int toExclusive, ParallelOptions parallelOptions, Action<int> body, Action<int, ParallelLoopState> bodyWithState, Func<int, ParallelLoopState, TLocal, TLocal> bodyWithLocal, Func<TLocal> localInit, Action<TLocal> localFinally)
{
return default(ParallelLoopResult);
}
// Token: 0x060020ED RID: 8429 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020ED")]
[Address(RVA = "0xB40E30", Offset = "0xB3FE30", VA = "0x180B40E30")]
internal static void ThrowIfReducableToSingleOCE(IEnumerable<Exception> excCollection, CancellationToken ct)
{
}
// Token: 0x0400125A RID: 4698
[Token(Token = "0x400125A")]
internal static ParallelOptions s_defaultParallelOptions;
// Token: 0x02000382 RID: 898
[Token(Token = "0x2000382")]
internal struct LoopTimer
{
// Token: 0x060020EF RID: 8431 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020EF")]
[Address(RVA = "0xB3FAE0", Offset = "0xB3EAE0", VA = "0x180B3FAE0")]
public LoopTimer(int nWorkerTaskIndex)
{
}
// Token: 0x060020F0 RID: 8432 RVA: 0x00015CF0 File Offset: 0x00013EF0
[Token(Token = "0x60020F0")]
[Address(RVA = "0xB3FAC0", Offset = "0xB3EAC0", VA = "0x180B3FAC0")]
public bool LimitExceeded()
{
return default(bool);
}
// Token: 0x0400125B RID: 4699
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400125B")]
private int m_timeLimit;
}
}
}
@@ -0,0 +1,89 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000398 RID: 920
[Token(Token = "0x2000398")]
internal class ParallelForReplicaTask : Task
{
// Token: 0x060021B4 RID: 8628 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B4")]
[Address(RVA = "0xB40050", Offset = "0xB3F050", VA = "0x180B40050")]
internal ParallelForReplicaTask(Action<object> taskReplicaDelegate, object stateObject, Task parentTask, TaskScheduler taskScheduler, TaskCreationOptions creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica)
{
}
// Token: 0x170004BB RID: 1211
// (get) Token: 0x060021B5 RID: 8629 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021B6 RID: 8630 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004BB")]
internal override object SavedStateForNextReplica
{
[Token(Token = "0x60021B5")]
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "15")]
get
{
return null;
}
[Token(Token = "0x60021B6")]
[Address(RVA = "0x55BCE0", Offset = "0x55ACE0", VA = "0x18055BCE0", Slot = "16")]
set
{
}
}
// Token: 0x170004BC RID: 1212
// (get) Token: 0x060021B7 RID: 8631 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021B8 RID: 8632 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004BC")]
internal override object SavedStateFromPreviousReplica
{
[Token(Token = "0x60021B7")]
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "17")]
get
{
return null;
}
[Token(Token = "0x60021B8")]
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10", Slot = "18")]
set
{
}
}
// Token: 0x170004BD RID: 1213
// (get) Token: 0x060021B9 RID: 8633 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060021BA RID: 8634 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004BD")]
internal override Task HandedOverChildReplica
{
[Token(Token = "0x60021B9")]
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "19")]
get
{
return null;
}
[Token(Token = "0x60021BA")]
[Address(RVA = "0x417A20", Offset = "0x416A20", VA = "0x180417A20", Slot = "20")]
set
{
}
}
// Token: 0x040012CA RID: 4810
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40012CA")]
internal object m_stateForNextReplica;
// Token: 0x040012CB RID: 4811
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40012CB")]
internal object m_stateFromPreviousReplica;
// Token: 0x040012CC RID: 4812
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40012CC")]
internal Task m_handedOverChildReplica;
}
}
@@ -0,0 +1,38 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000397 RID: 919
[Token(Token = "0x2000397")]
internal class ParallelForReplicatingTask : Task
{
// Token: 0x060021B1 RID: 8625 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021B1")]
[Address(RVA = "0xB40210", Offset = "0xB3F210", VA = "0x180B40210")]
internal ParallelForReplicatingTask(ParallelOptions parallelOptions, Action action, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions)
{
}
// Token: 0x060021B2 RID: 8626 RVA: 0x00016278 File Offset: 0x00014478
[Token(Token = "0x60021B2")]
[Address(RVA = "0xB401F0", Offset = "0xB3F1F0", VA = "0x180B401F0", Slot = "13")]
internal override bool ShouldReplicate()
{
return default(bool);
}
// Token: 0x060021B3 RID: 8627 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021B3")]
[Address(RVA = "0xB40110", Offset = "0xB3F110", VA = "0x180B40110", Slot = "14")]
internal override Task CreateReplicaTask(Action<object> taskReplicaDelegate, object stateObject, Task parentTask, TaskScheduler taskScheduler, TaskCreationOptions creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica)
{
return null;
}
// Token: 0x040012C9 RID: 4809
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40012C9")]
private int m_replicationDownCount;
}
}
@@ -0,0 +1,21 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides completion status on the execution of a <see cref="T:System.Threading.Tasks.Parallel" /> loop.</summary>
// Token: 0x02000388 RID: 904
[Token(Token = "0x2000388")]
public struct ParallelLoopResult
{
// Token: 0x04001270 RID: 4720
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001270")]
internal bool m_completed;
// Token: 0x04001271 RID: 4721
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x4001271")]
internal long? m_lowestBreakIteration;
}
}
@@ -0,0 +1,25 @@
using System;
using System.Diagnostics;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Enables iterations of parallel loops to interact with other iterations. An instance of this class is provided by the <see cref="T:System.Threading.Tasks.Parallel" /> class to each loop; you can not create instances in your code.</summary>
// Token: 0x02000384 RID: 900
[Token(Token = "0x2000384")]
[DebuggerDisplay("ShouldExitCurrentIteration = {ShouldExitCurrentIteration}")]
public class ParallelLoopState
{
// Token: 0x060020F4 RID: 8436 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020F4")]
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
internal ParallelLoopState(ParallelLoopStateFlags fbase)
{
}
// Token: 0x04001266 RID: 4710
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001266")]
private ParallelLoopStateFlags m_flagsBase;
}
}
@@ -0,0 +1,39 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000385 RID: 901
[Token(Token = "0x2000385")]
internal class ParallelLoopState32 : ParallelLoopState
{
// Token: 0x060020F5 RID: 8437 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020F5")]
[Address(RVA = "0xB40440", Offset = "0xB3F440", VA = "0x180B40440")]
internal ParallelLoopState32(ParallelLoopStateFlags32 sharedParallelStateFlags)
{
}
// Token: 0x17000494 RID: 1172
// (set) Token: 0x060020F6 RID: 8438 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000494")]
internal int CurrentIteration
{
[Token(Token = "0x60020F6")]
[Address(RVA = "0x62ADB0", Offset = "0x629DB0", VA = "0x18062ADB0")]
set
{
}
}
// Token: 0x04001267 RID: 4711
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001267")]
private ParallelLoopStateFlags32 m_sharedParallelStateFlags;
// Token: 0x04001268 RID: 4712
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001268")]
private int m_currentIteration;
}
}
@@ -0,0 +1,86 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000386 RID: 902
[Token(Token = "0x2000386")]
internal class ParallelLoopStateFlags
{
// Token: 0x17000495 RID: 1173
// (get) Token: 0x060020F7 RID: 8439 RVA: 0x00015D08 File Offset: 0x00013F08
[Token(Token = "0x17000495")]
internal int LoopStateFlags
{
[Token(Token = "0x60020F7")]
[Address(RVA = "0xB40AD0", Offset = "0xB3FAD0", VA = "0x180B40AD0")]
get
{
return 0;
}
}
// Token: 0x060020F8 RID: 8440 RVA: 0x00015D20 File Offset: 0x00013F20
[Token(Token = "0x60020F8")]
[Address(RVA = "0xB40720", Offset = "0xB3F720", VA = "0x180B40720")]
internal bool AtomicLoopStateUpdate(int newState, int illegalStates)
{
return default(bool);
}
// Token: 0x060020F9 RID: 8441 RVA: 0x00015D38 File Offset: 0x00013F38
[Token(Token = "0x60020F9")]
[Address(RVA = "0xB40740", Offset = "0xB3F740", VA = "0x180B40740")]
internal bool AtomicLoopStateUpdate(int newState, int illegalStates, ref int oldState)
{
return default(bool);
}
// Token: 0x060020FA RID: 8442 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020FA")]
[Address(RVA = "0xB40950", Offset = "0xB3F950", VA = "0x180B40950")]
internal void SetExceptional()
{
}
// Token: 0x060020FB RID: 8443 RVA: 0x00015D50 File Offset: 0x00013F50
[Token(Token = "0x60020FB")]
[Address(RVA = "0xB408D0", Offset = "0xB3F8D0", VA = "0x180B408D0")]
internal bool Cancel()
{
return default(bool);
}
// Token: 0x060020FC RID: 8444 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020FC")]
[Address(RVA = "0xB40A50", Offset = "0xB3FA50", VA = "0x180B40A50")]
public ParallelLoopStateFlags()
{
}
// Token: 0x04001269 RID: 4713
[Token(Token = "0x4001269")]
internal static int PLS_NONE;
// Token: 0x0400126A RID: 4714
[Token(Token = "0x400126A")]
internal static int PLS_EXCEPTIONAL;
// Token: 0x0400126B RID: 4715
[Token(Token = "0x400126B")]
internal static int PLS_BROKEN;
// Token: 0x0400126C RID: 4716
[Token(Token = "0x400126C")]
internal static int PLS_STOPPED;
// Token: 0x0400126D RID: 4717
[Token(Token = "0x400126D")]
internal static int PLS_CANCELED;
// Token: 0x0400126E RID: 4718
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400126E")]
private int m_LoopStateFlags;
}
}
@@ -0,0 +1,51 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000387 RID: 903
[Token(Token = "0x2000387")]
internal class ParallelLoopStateFlags32 : ParallelLoopStateFlags
{
// Token: 0x17000496 RID: 1174
// (get) Token: 0x060020FE RID: 8446 RVA: 0x00015D68 File Offset: 0x00013F68
[Token(Token = "0x17000496")]
internal int LowestBreakIteration
{
[Token(Token = "0x60020FE")]
[Address(RVA = "0xB40700", Offset = "0xB3F700", VA = "0x180B40700")]
get
{
return 0;
}
}
// Token: 0x060020FF RID: 8447 RVA: 0x00015D80 File Offset: 0x00013F80
[Token(Token = "0x60020FF")]
[Address(RVA = "0xB40470", Offset = "0xB3F470", VA = "0x180B40470")]
internal bool ShouldExitLoop(int CallerIteration)
{
return default(bool);
}
// Token: 0x06002100 RID: 8448 RVA: 0x00015D98 File Offset: 0x00013F98
[Token(Token = "0x6002100")]
[Address(RVA = "0xB40590", Offset = "0xB3F590", VA = "0x180B40590")]
internal bool ShouldExitLoop()
{
return default(bool);
}
// Token: 0x06002101 RID: 8449 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002101")]
[Address(RVA = "0xB40630", Offset = "0xB3F630", VA = "0x180B40630")]
public ParallelLoopStateFlags32()
{
}
// Token: 0x0400126F RID: 4719
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400126F")]
internal int m_lowestBreakIteration;
}
}
@@ -0,0 +1,91 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Stores options that configure the operation of methods on the <see cref="T:System.Threading.Tasks.Parallel" /> class.</summary>
// Token: 0x02000380 RID: 896
[Token(Token = "0x2000380")]
public class ParallelOptions
{
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.ParallelOptions" /> class.</summary>
// Token: 0x060020E6 RID: 8422 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020E6")]
[Address(RVA = "0xB40AF0", Offset = "0xB3FAF0", VA = "0x180B40AF0")]
public ParallelOptions()
{
}
// Token: 0x17000490 RID: 1168
// (get) Token: 0x060020E7 RID: 8423 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000490")]
internal TaskScheduler EffectiveTaskScheduler
{
[Token(Token = "0x60020E7")]
[Address(RVA = "0xB40CC0", Offset = "0xB3FCC0", VA = "0x180B40CC0")]
get
{
return null;
}
}
/// <summary>Gets or sets the maximum number of concurrent tasks enabled by this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
/// <returns>An integer that represents the maximum degree of parallelism.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The property is being set to zero or to a value that is less than -1.</exception>
// Token: 0x17000491 RID: 1169
// (get) Token: 0x060020E8 RID: 8424 RVA: 0x00015C78 File Offset: 0x00013E78
[Token(Token = "0x17000491")]
public int MaxDegreeOfParallelism
{
[Token(Token = "0x60020E8")]
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
get
{
return 0;
}
}
/// <summary>Gets or sets the <see cref="T:System.Threading.CancellationToken" /> associated with this <see cref="T:System.Threading.Tasks.ParallelOptions" /> instance.</summary>
/// <returns>The token that is associated with this instance.</returns>
// Token: 0x17000492 RID: 1170
// (get) Token: 0x060020E9 RID: 8425 RVA: 0x00015C90 File Offset: 0x00013E90
[Token(Token = "0x17000492")]
public CancellationToken CancellationToken
{
[Token(Token = "0x60020E9")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return default(CancellationToken);
}
}
// Token: 0x17000493 RID: 1171
// (get) Token: 0x060020EA RID: 8426 RVA: 0x00015CA8 File Offset: 0x00013EA8
[Token(Token = "0x17000493")]
internal int EffectiveMaxConcurrencyLevel
{
[Token(Token = "0x60020EA")]
[Address(RVA = "0xB40BD0", Offset = "0xB3FBD0", VA = "0x180B40BD0")]
get
{
return 0;
}
}
// Token: 0x04001257 RID: 4695
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001257")]
private TaskScheduler m_scheduler;
// Token: 0x04001258 RID: 4696
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001258")]
private int m_maxDegreeOfParallelism;
// Token: 0x04001259 RID: 4697
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001259")]
private CancellationToken m_cancellationToken;
}
}
@@ -0,0 +1,45 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200038B RID: 907
[Token(Token = "0x200038B")]
internal class RangeManager
{
// Token: 0x06002105 RID: 8453 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002105")]
[Address(RVA = "0xB41B20", Offset = "0xB40B20", VA = "0x180B41B20")]
internal RangeManager(long nFromInclusive, long nToExclusive, long nStep, int nNumExpectedWorkers)
{
}
// Token: 0x06002106 RID: 8454 RVA: 0x00015DE0 File Offset: 0x00013FE0
[Token(Token = "0x6002106")]
[Address(RVA = "0xB41AB0", Offset = "0xB40AB0", VA = "0x180B41AB0")]
internal RangeWorker RegisterNewWorker()
{
return default(RangeWorker);
}
// Token: 0x0400127C RID: 4732
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400127C")]
internal readonly IndexRange[] m_indexRanges;
// Token: 0x0400127D RID: 4733
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400127D")]
internal readonly bool _use32BitCurrentIndex;
// Token: 0x0400127E RID: 4734
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x400127E")]
internal int m_nCurrentIndexRangeToAssign;
// Token: 0x0400127F RID: 4735
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400127F")]
internal long m_nStep;
}
}
@@ -0,0 +1,65 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200038A RID: 906
[Token(Token = "0x200038A")]
[StructLayout(3)]
internal struct RangeWorker
{
// Token: 0x06002102 RID: 8450 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002102")]
[Address(RVA = "0xB42020", Offset = "0xB41020", VA = "0x180B42020")]
internal RangeWorker(IndexRange[] ranges, int nInitialRange, long nStep, bool use32BitCurrentIndex)
{
}
// Token: 0x06002103 RID: 8451 RVA: 0x00015DB0 File Offset: 0x00013FB0
[Token(Token = "0x6002103")]
[Address(RVA = "0xB41D40", Offset = "0xB40D40", VA = "0x180B41D40")]
internal bool FindNewWork(out long nFromInclusiveLocal, out long nToExclusiveLocal)
{
return default(bool);
}
// Token: 0x06002104 RID: 8452 RVA: 0x00015DC8 File Offset: 0x00013FC8
[Token(Token = "0x6002104")]
[Address(RVA = "0xB41CF0", Offset = "0xB40CF0", VA = "0x180B41CF0")]
internal bool FindNewWork32(out int nFromInclusiveLocal32, out int nToExclusiveLocal32)
{
return default(bool);
}
// Token: 0x04001276 RID: 4726
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001276")]
internal readonly IndexRange[] m_indexRanges;
// Token: 0x04001277 RID: 4727
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4001277")]
internal int m_nCurrentIndexRange;
// Token: 0x04001278 RID: 4728
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001278")]
internal long m_nStep;
// Token: 0x04001279 RID: 4729
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001279")]
internal long m_nIncrementValue;
// Token: 0x0400127A RID: 4730
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x400127A")]
internal readonly long m_nMaxIncrementValue;
// Token: 0x0400127B RID: 4731
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x400127B")]
internal readonly bool _use32BitCurrentIndex;
}
}
+22
View File
@@ -0,0 +1,22 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200038C RID: 908
[Token(Token = "0x200038C")]
internal class Shared<T>
{
// Token: 0x06002107 RID: 8455 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002107")]
[Address(RVA = "0x2427900", Offset = "0x2426900", VA = "0x182427900")]
internal Shared(T value)
{
}
// Token: 0x04001280 RID: 4736
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001280")]
internal T Value;
}
}
@@ -0,0 +1,49 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200039C RID: 924
[Token(Token = "0x200039C")]
internal class StackGuard
{
// Token: 0x060021BB RID: 8635 RVA: 0x00016290 File Offset: 0x00014490
[Token(Token = "0x60021BB")]
[Address(RVA = "0xB45C20", Offset = "0xB44C20", VA = "0x180B45C20")]
internal bool TryBeginInliningScope()
{
return default(bool);
}
// Token: 0x060021BC RID: 8636 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021BC")]
[Address(RVA = "0xB45C00", Offset = "0xB44C00", VA = "0x180B45C00")]
internal void EndInliningScope()
{
}
// Token: 0x060021BD RID: 8637 RVA: 0x000162A8 File Offset: 0x000144A8
[Token(Token = "0x60021BD")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0")]
private bool CheckForSufficientStack()
{
return default(bool);
}
// Token: 0x060021BE RID: 8638 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021BE")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
public StackGuard()
{
}
// Token: 0x040012EF RID: 4847
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012EF")]
private int m_inliningDepth;
// Token: 0x040012F0 RID: 4848
[Token(Token = "0x40012F0")]
private const int MAX_UNCHECKED_INLINING_DEPTH = 20;
}
}
@@ -0,0 +1,39 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A6 RID: 934
[Token(Token = "0x20003A6")]
internal class StandardTaskContinuation : TaskContinuation
{
// Token: 0x060021D6 RID: 8662 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D6")]
[Address(RVA = "0xB45D50", Offset = "0xB44D50", VA = "0x180B45D50")]
internal StandardTaskContinuation(Task task, TaskContinuationOptions options, TaskScheduler scheduler)
{
}
// Token: 0x060021D7 RID: 8663 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D7")]
[Address(RVA = "0xB45C30", Offset = "0xB44C30", VA = "0x180B45C30", Slot = "4")]
internal override void Run(Task completedTask, bool bCanInlineContinuationTask)
{
}
// Token: 0x040012F7 RID: 4855
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012F7")]
internal readonly Task m_task;
// Token: 0x040012F8 RID: 4856
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012F8")]
internal readonly TaskContinuationOptions m_options;
// Token: 0x040012F9 RID: 4857
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40012F9")]
private readonly TaskScheduler m_taskScheduler;
}
}
@@ -0,0 +1,52 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A7 RID: 935
[Token(Token = "0x20003A7")]
internal sealed class SynchronizationContextAwaitTaskContinuation : AwaitTaskContinuation
{
// Token: 0x060021D8 RID: 8664 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D8")]
[Address(RVA = "0xB461C0", Offset = "0xB451C0", VA = "0x180B461C0")]
internal SynchronizationContextAwaitTaskContinuation(SynchronizationContext context, Action action, bool flowExecutionContext, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021D9 RID: 8665 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D9")]
[Address(RVA = "0xB45F80", Offset = "0xB44F80", VA = "0x180B45F80", Slot = "4")]
internal sealed override void Run(Task task, bool canInlineContinuationTask)
{
}
// Token: 0x060021DA RID: 8666 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021DA")]
[Address(RVA = "0xB45ED0", Offset = "0xB44ED0", VA = "0x180B45ED0")]
private static void PostAction(object state)
{
}
// Token: 0x060021DB RID: 8667 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60021DB")]
[Address(RVA = "0xB45E10", Offset = "0xB44E10", VA = "0x180B45E10")]
private static ContextCallback GetPostActionCallback()
{
return null;
}
// Token: 0x040012FA RID: 4858
[Token(Token = "0x40012FA")]
private static readonly SendOrPostCallback s_postCallback;
// Token: 0x040012FB RID: 4859
[Token(Token = "0x40012FB")]
private static ContextCallback s_postActionCallback;
// Token: 0x040012FC RID: 4860
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40012FC")]
private readonly SynchronizationContext m_syncContext;
}
}
@@ -0,0 +1,61 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003B2 RID: 946
[Token(Token = "0x20003B2")]
internal sealed class SynchronizationContextTaskScheduler : TaskScheduler
{
// Token: 0x06002226 RID: 8742 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002226")]
[Address(RVA = "0xB46460", Offset = "0xB45460", VA = "0x180B46460")]
internal SynchronizationContextTaskScheduler()
{
}
// Token: 0x06002227 RID: 8743 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002227")]
[Address(RVA = "0xB462C0", Offset = "0xB452C0", VA = "0x180B462C0", Slot = "4")]
protected internal override void QueueTask(Task task)
{
}
// Token: 0x06002228 RID: 8744 RVA: 0x000163F8 File Offset: 0x000145F8
[Token(Token = "0x6002228")]
[Address(RVA = "0xB46350", Offset = "0xB45350", VA = "0x180B46350", Slot = "5")]
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
{
return default(bool);
}
// Token: 0x170004C7 RID: 1223
// (get) Token: 0x06002229 RID: 8745 RVA: 0x00016410 File Offset: 0x00014610
[Token(Token = "0x170004C7")]
public override int MaximumConcurrencyLevel
{
[Token(Token = "0x6002229")]
[Address(RVA = "0x4E8690", Offset = "0x4E7690", VA = "0x1804E8690", Slot = "6")]
get
{
return 0;
}
}
// Token: 0x0600222A RID: 8746 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600222A")]
[Address(RVA = "0xB46200", Offset = "0xB45200", VA = "0x180B46200")]
private static void PostCallback(object obj)
{
}
// Token: 0x04001319 RID: 4889
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4001319")]
private SynchronizationContext m_synchronizationContext;
// Token: 0x0400131A RID: 4890
[Token(Token = "0x400131A")]
private static SendOrPostCallback s_postCallback;
}
}
@@ -0,0 +1,11 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000377 RID: 887
[Token(Token = "0x2000377")]
internal class SystemThreadingTasks_FutureDebugView<TResult>
{
}
}
@@ -0,0 +1,11 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x02000396 RID: 918
[Token(Token = "0x2000396")]
internal class SystemThreadingTasks_TaskDebugView
{
}
}
+1804
View File
@@ -0,0 +1,1804 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents an asynchronous operation.</summary>
// Token: 0x0200038E RID: 910
[Token(Token = "0x200038E")]
[DebuggerTypeProxy(typeof(SystemThreadingTasks_TaskDebugView))]
[DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}")]
public class Task : IThreadPoolWorkItem, IAsyncResult, IDisposable
{
// Token: 0x06002108 RID: 8456 RVA: 0x00015DF8 File Offset: 0x00013FF8
[Token(Token = "0x6002108")]
[Address(RVA = "0xB4AB30", Offset = "0xB49B30", VA = "0x180B4AB30")]
[FriendAccessAllowed]
internal static bool AddToActiveTasks(Task task)
{
return default(bool);
}
// Token: 0x06002109 RID: 8457 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002109")]
[Address(RVA = "0xB4F4E0", Offset = "0xB4E4E0", VA = "0x180B4F4E0")]
[FriendAccessAllowed]
internal static void RemoveFromActiveTasks(int taskId)
{
}
// Token: 0x0600210A RID: 8458 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210A")]
[Address(RVA = "0xB513C0", Offset = "0xB503C0", VA = "0x180B513C0")]
internal Task(bool canceled, TaskCreationOptions creationOptions, CancellationToken ct)
{
}
// Token: 0x0600210B RID: 8459 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210B")]
[Address(RVA = "0xB51480", Offset = "0xB50480", VA = "0x180B51480")]
internal Task()
{
}
// Token: 0x0600210C RID: 8460 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210C")]
[Address(RVA = "0xB51290", Offset = "0xB50290", VA = "0x180B51290")]
internal Task(object state, TaskCreationOptions creationOptions, bool promiseStyle)
{
}
// Token: 0x0600210D RID: 8461 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210D")]
[Address(RVA = "0xB511B0", Offset = "0xB501B0", VA = "0x180B511B0")]
internal Task(Delegate action, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x0600210E RID: 8462 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210E")]
[Address(RVA = "0xB50460", Offset = "0xB4F460", VA = "0x180B50460")]
internal void TaskConstructorCore(object action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x0600210F RID: 8463 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600210F")]
[Address(RVA = "0xB4AD10", Offset = "0xB49D10", VA = "0x180B4AD10")]
private void AssignCancellationToken(CancellationToken cancellationToken, Task antecedent, TaskContinuation continuation)
{
}
// Token: 0x06002110 RID: 8464 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002110")]
[Address(RVA = "0xB50370", Offset = "0xB4F370", VA = "0x180B50370")]
private static void TaskCancelCallback(object o)
{
}
// Token: 0x06002111 RID: 8465 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002111")]
[Address(RVA = "0xB4EEB0", Offset = "0xB4DEB0", VA = "0x180B4EEB0")]
internal void PossiblyCaptureContext(ref StackCrawlMark stackMark)
{
}
// Token: 0x17000497 RID: 1175
// (get) Token: 0x06002112 RID: 8466 RVA: 0x00015E10 File Offset: 0x00014010
[Token(Token = "0x17000497")]
internal TaskCreationOptions Options
{
[Token(Token = "0x6002112")]
[Address(RVA = "0xB51F00", Offset = "0xB50F00", VA = "0x180B51F00")]
get
{
return TaskCreationOptions.None;
}
}
// Token: 0x06002113 RID: 8467 RVA: 0x00015E28 File Offset: 0x00014028
[Token(Token = "0x6002113")]
[Address(RVA = "0xB4EEA0", Offset = "0xB4DEA0", VA = "0x180B4EEA0")]
internal static TaskCreationOptions OptionsMethod(int flags)
{
return TaskCreationOptions.None;
}
// Token: 0x06002114 RID: 8468 RVA: 0x00015E40 File Offset: 0x00014040
[Token(Token = "0x6002114")]
[Address(RVA = "0xB4B010", Offset = "0xB4A010", VA = "0x180B4B010")]
internal bool AtomicStateUpdate(int newBits, int illegalBits)
{
return default(bool);
}
// Token: 0x06002115 RID: 8469 RVA: 0x00015E58 File Offset: 0x00014058
[Token(Token = "0x6002115")]
[Address(RVA = "0xB4B190", Offset = "0xB4A190", VA = "0x180B4B190")]
internal bool AtomicStateUpdate(int newBits, int illegalBits, ref int oldFlags)
{
return default(bool);
}
// Token: 0x06002116 RID: 8470 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002116")]
[Address(RVA = "0xB4FC00", Offset = "0xB4EC00", VA = "0x180B4FC00")]
internal void SetNotificationForWaitCompletion(bool enabled)
{
}
// Token: 0x06002117 RID: 8471 RVA: 0x00015E70 File Offset: 0x00014070
[Token(Token = "0x6002117")]
[Address(RVA = "0xB4EE10", Offset = "0xB4DE10", VA = "0x180B4EE10")]
internal bool NotifyDebuggerOfWaitCompletionIfNecessary()
{
return default(bool);
}
// Token: 0x06002118 RID: 8472 RVA: 0x00015E88 File Offset: 0x00014088
[Token(Token = "0x6002118")]
[Address(RVA = "0xB4AC70", Offset = "0xB49C70", VA = "0x180B4AC70")]
internal static bool AnyTaskRequiresNotifyDebuggerOfWaitCompletion(Task[] tasks)
{
return default(bool);
}
// Token: 0x17000498 RID: 1176
// (get) Token: 0x06002119 RID: 8473 RVA: 0x00015EA0 File Offset: 0x000140A0
[Token(Token = "0x17000498")]
internal bool IsWaitNotificationEnabledOrNotRanToCompletion
{
[Token(Token = "0x6002119")]
[Address(RVA = "0xB51EB0", Offset = "0xB50EB0", VA = "0x180B51EB0")]
get
{
return default(bool);
}
}
// Token: 0x17000499 RID: 1177
// (get) Token: 0x0600211A RID: 8474 RVA: 0x00015EB8 File Offset: 0x000140B8
[Token(Token = "0x17000499")]
internal virtual bool ShouldNotifyDebuggerOfWaitCompletion
{
[Token(Token = "0x600211A")]
[Address(RVA = "0xB51EE0", Offset = "0xB50EE0", VA = "0x180B51EE0", Slot = "11")]
get
{
return default(bool);
}
}
// Token: 0x1700049A RID: 1178
// (get) Token: 0x0600211B RID: 8475 RVA: 0x00015ED0 File Offset: 0x000140D0
[Token(Token = "0x1700049A")]
internal bool IsWaitNotificationEnabled
{
[Token(Token = "0x600211B")]
[Address(RVA = "0xB51EE0", Offset = "0xB50EE0", VA = "0x180B51EE0")]
get
{
return default(bool);
}
}
// Token: 0x0600211C RID: 8476 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600211C")]
[Address(RVA = "0xB4EE70", Offset = "0xB4DE70", VA = "0x180B4EE70")]
private void NotifyDebuggerOfWaitCompletion()
{
}
// Token: 0x0600211D RID: 8477 RVA: 0x00015EE8 File Offset: 0x000140E8
[Token(Token = "0x600211D")]
[Address(RVA = "0xB4ED90", Offset = "0xB4DD90", VA = "0x180B4ED90")]
internal bool MarkStarted()
{
return default(bool);
}
// Token: 0x0600211E RID: 8478 RVA: 0x00015F00 File Offset: 0x00014100
[Token(Token = "0x600211E")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
internal bool FireTaskScheduledIfNeeded(TaskScheduler ts)
{
return default(bool);
}
// Token: 0x0600211F RID: 8479 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600211F")]
[Address(RVA = "0xB4A620", Offset = "0xB49620", VA = "0x180B4A620")]
internal void AddNewChild()
{
}
// Token: 0x06002120 RID: 8480 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002120")]
[Address(RVA = "0xB4C760", Offset = "0xB4B760", VA = "0x180B4C760")]
internal void DisregardChild()
{
}
/// <summary>Runs the <see cref="T:System.Threading.Tasks.Task" /> synchronously on the <see cref="T:System.Threading.Tasks.TaskScheduler" /> provided.</summary>
/// <param name="scheduler">The scheduler on which to attempt to run this task inline.</param>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> instance has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="scheduler" /> argument is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Threading.Tasks.Task" /> is not in a valid state to be started. It may have already been started, executed, or canceled, or it may have been created in a manner that doesn't support direct scheduling.</exception>
// Token: 0x06002121 RID: 8481 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002121")]
[Address(RVA = "0xB4F610", Offset = "0xB4E610", VA = "0x180B4F610")]
public void RunSynchronously(TaskScheduler scheduler)
{
}
// Token: 0x06002122 RID: 8482 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002122")]
[Address(RVA = "0xB4E580", Offset = "0xB4D580", VA = "0x180B4E580")]
internal void InternalRunSynchronously(TaskScheduler scheduler, bool waitForCompletion)
{
}
// Token: 0x06002123 RID: 8483 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002123")]
[Address(RVA = "0xB4E8F0", Offset = "0xB4D8F0", VA = "0x180B4E8F0")]
internal static Task InternalStartNew(Task creatingTask, Delegate action, object state, CancellationToken cancellationToken, TaskScheduler scheduler, TaskCreationOptions options, InternalTaskOptions internalOptions, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x06002124 RID: 8484 RVA: 0x00015F18 File Offset: 0x00014118
[Token(Token = "0x6002124")]
[Address(RVA = "0xB4EDB0", Offset = "0xB4DDB0", VA = "0x180B4EDB0")]
internal static int NewId()
{
return 0;
}
/// <summary>Gets an ID for this <see cref="T:System.Threading.Tasks.Task" /> instance.</summary>
/// <returns>The identifier that is assigned by the system to this <see cref="T:System.Threading.Tasks.Task" /> instance.</returns>
// Token: 0x1700049B RID: 1179
// (get) Token: 0x06002125 RID: 8485 RVA: 0x00015F30 File Offset: 0x00014130
[Token(Token = "0x1700049B")]
public int Id
{
[Token(Token = "0x6002125")]
[Address(RVA = "0xB51AB0", Offset = "0xB50AB0", VA = "0x180B51AB0")]
get
{
return 0;
}
}
// Token: 0x1700049C RID: 1180
// (get) Token: 0x06002126 RID: 8486 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700049C")]
internal static Task InternalCurrent
{
[Token(Token = "0x6002126")]
[Address(RVA = "0xB51BA0", Offset = "0xB50BA0", VA = "0x180B51BA0")]
get
{
return null;
}
}
// Token: 0x06002127 RID: 8487 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002127")]
[Address(RVA = "0xB4E4D0", Offset = "0xB4D4D0", VA = "0x180B4E4D0")]
internal static Task InternalCurrentIfAttached(TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x1700049D RID: 1181
// (get) Token: 0x06002128 RID: 8488 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700049D")]
internal static StackGuard CurrentStackGuard
{
[Token(Token = "0x6002128")]
[Address(RVA = "0xB518E0", Offset = "0xB508E0", VA = "0x180B518E0")]
get
{
return null;
}
}
/// <summary>Gets the <see cref="T:System.AggregateException" /> that caused the <see cref="T:System.Threading.Tasks.Task" /> to end prematurely. If the <see cref="T:System.Threading.Tasks.Task" /> completed successfully or has not yet thrown any exceptions, this will return <see langword="null" />.</summary>
/// <returns>The <see cref="T:System.AggregateException" /> that caused the <see cref="T:System.Threading.Tasks.Task" /> to end prematurely.</returns>
// Token: 0x1700049E RID: 1182
// (get) Token: 0x06002129 RID: 8489 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700049E")]
public AggregateException Exception
{
[Token(Token = "0x6002129")]
[Address(RVA = "0xB51A00", Offset = "0xB50A00", VA = "0x180B51A00")]
get
{
return null;
}
}
/// <summary>Gets the <see cref="T:System.Threading.Tasks.TaskStatus" /> of this task.</summary>
/// <returns>The current <see cref="T:System.Threading.Tasks.TaskStatus" /> of this task instance.</returns>
// Token: 0x1700049F RID: 1183
// (get) Token: 0x0600212A RID: 8490 RVA: 0x00015F48 File Offset: 0x00014148
[Token(Token = "0x1700049F")]
public TaskStatus Status
{
[Token(Token = "0x600212A")]
[Address(RVA = "0xB51F60", Offset = "0xB50F60", VA = "0x180B51F60")]
get
{
return TaskStatus.Created;
}
}
/// <summary>Gets whether this <see cref="T:System.Threading.Tasks.Task" /> instance has completed execution due to being canceled.</summary>
/// <returns>
/// <see langword="true" /> if the task has completed due to being canceled; otherwise <see langword="false" />.</returns>
// Token: 0x170004A0 RID: 1184
// (get) Token: 0x0600212B RID: 8491 RVA: 0x00015F60 File Offset: 0x00014160
[Token(Token = "0x170004A0")]
public bool IsCanceled
{
[Token(Token = "0x600212B")]
[Address(RVA = "0xB51C60", Offset = "0xB50C60", VA = "0x180B51C60")]
get
{
return default(bool);
}
}
// Token: 0x170004A1 RID: 1185
// (get) Token: 0x0600212C RID: 8492 RVA: 0x00015F78 File Offset: 0x00014178
[Token(Token = "0x170004A1")]
internal bool IsCancellationRequested
{
[Token(Token = "0x600212C")]
[Address(RVA = "0xB51CB0", Offset = "0xB50CB0", VA = "0x180B51CB0")]
get
{
return default(bool);
}
}
// Token: 0x0600212D RID: 8493 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600212D")]
[Address(RVA = "0xB4C8D0", Offset = "0xB4B8D0", VA = "0x180B4C8D0")]
internal Task.ContingentProperties EnsureContingentPropertiesInitialized(bool needsProtection)
{
return null;
}
// Token: 0x0600212E RID: 8494 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600212E")]
[Address(RVA = "0xB4C810", Offset = "0xB4B810", VA = "0x180B4C810")]
private Task.ContingentProperties EnsureContingentPropertiesInitializedCore(bool needsProtection)
{
return null;
}
// Token: 0x170004A2 RID: 1186
// (get) Token: 0x0600212F RID: 8495 RVA: 0x00015F90 File Offset: 0x00014190
[Token(Token = "0x170004A2")]
internal CancellationToken CancellationToken
{
[Token(Token = "0x600212F")]
[Address(RVA = "0xB514E0", Offset = "0xB504E0", VA = "0x180B514E0")]
get
{
return default(CancellationToken);
}
}
// Token: 0x170004A3 RID: 1187
// (get) Token: 0x06002130 RID: 8496 RVA: 0x00015FA8 File Offset: 0x000141A8
[Token(Token = "0x170004A3")]
internal bool IsCancellationAcknowledged
{
[Token(Token = "0x6002130")]
[Address(RVA = "0xB51C90", Offset = "0xB50C90", VA = "0x180B51C90")]
get
{
return default(bool);
}
}
/// <summary>Gets whether this <see cref="T:System.Threading.Tasks.Task" /> has completed.</summary>
/// <returns>
/// <see langword="true" /> if the task has completed; otherwise <see langword="false" />.</returns>
// Token: 0x170004A4 RID: 1188
// (get) Token: 0x06002131 RID: 8497 RVA: 0x00015FC0 File Offset: 0x000141C0
[Token(Token = "0x170004A4")]
public bool IsCompleted
{
[Token(Token = "0x6002131")]
[Address(RVA = "0xB51D90", Offset = "0xB50D90", VA = "0x180B51D90", Slot = "6")]
get
{
return default(bool);
}
}
// Token: 0x06002132 RID: 8498 RVA: 0x00015FD8 File Offset: 0x000141D8
[Token(Token = "0x6002132")]
[Address(RVA = "0xB4ED70", Offset = "0xB4DD70", VA = "0x180B4ED70")]
private static bool IsCompletedMethod(int flags)
{
return default(bool);
}
// Token: 0x170004A5 RID: 1189
// (get) Token: 0x06002133 RID: 8499 RVA: 0x00015FF0 File Offset: 0x000141F0
[Token(Token = "0x170004A5")]
public bool IsCompletedSuccessfully
{
[Token(Token = "0x6002133")]
[Address(RVA = "0xB51D60", Offset = "0xB50D60", VA = "0x180B51D60")]
get
{
return default(bool);
}
}
// Token: 0x170004A6 RID: 1190
// (get) Token: 0x06002134 RID: 8500 RVA: 0x00016008 File Offset: 0x00014208
[Token(Token = "0x170004A6")]
internal bool IsRanToCompletion
{
[Token(Token = "0x6002134")]
[Address(RVA = "0xB51D60", Offset = "0xB50D60", VA = "0x180B51D60")]
get
{
return default(bool);
}
}
/// <summary>Gets the <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to create this task.</summary>
/// <returns>The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to create this task.</returns>
// Token: 0x170004A7 RID: 1191
// (get) Token: 0x06002135 RID: 8501 RVA: 0x00016020 File Offset: 0x00014220
[Token(Token = "0x170004A7")]
public TaskCreationOptions CreationOptions
{
[Token(Token = "0x6002135")]
[Address(RVA = "0xB51880", Offset = "0xB50880", VA = "0x180B51880")]
get
{
return TaskCreationOptions.None;
}
}
/// <summary>Gets a <see cref="T:System.Threading.WaitHandle" /> that can be used to wait for the task to complete.</summary>
/// <returns>A <see cref="T:System.Threading.WaitHandle" /> that can be used to wait for the task to complete.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> has been disposed.</exception>
// Token: 0x170004A8 RID: 1192
// (get) Token: 0x06002136 RID: 8502 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004A8")]
WaitHandle IAsyncResult.AsyncWaitHandle
{
[Token(Token = "0x6002136")]
[Address(RVA = "0xB500B0", Offset = "0xB4F0B0", VA = "0x180B500B0", Slot = "7")]
get
{
return null;
}
}
/// <summary>Gets the state object supplied when the <see cref="T:System.Threading.Tasks.Task" /> was created, or null if none was supplied.</summary>
/// <returns>An <see cref="T:System.Object" /> that represents the state data that was passed in to the task when it was created.</returns>
// Token: 0x170004A9 RID: 1193
// (get) Token: 0x06002137 RID: 8503 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004A9")]
public object AsyncState
{
[Token(Token = "0x6002137")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
get
{
return null;
}
}
/// <summary>Gets an indication of whether the operation completed synchronously.</summary>
/// <returns>
/// <see langword="true" /> if the operation completed synchronously; otherwise, <see langword="false" />.</returns>
// Token: 0x170004AA RID: 1194
// (get) Token: 0x06002138 RID: 8504 RVA: 0x00016038 File Offset: 0x00014238
[Token(Token = "0x170004AA")]
bool IAsyncResult.CompletedSynchronously
{
[Token(Token = "0x6002138")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x170004AB RID: 1195
// (get) Token: 0x06002139 RID: 8505 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004AB")]
internal TaskScheduler ExecutingTaskScheduler
{
[Token(Token = "0x6002139")]
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
get
{
return null;
}
}
/// <summary>Provides access to factory methods for creating and configuring <see cref="T:System.Threading.Tasks.Task" /> and <see cref="T:System.Threading.Tasks.Task`1" /> instances.</summary>
/// <returns>A factory object that can create a variety of <see cref="T:System.Threading.Tasks.Task" /> and <see cref="T:System.Threading.Tasks.Task`1" /> objects.</returns>
// Token: 0x170004AC RID: 1196
// (get) Token: 0x0600213A RID: 8506 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004AC")]
public static TaskFactory Factory
{
[Token(Token = "0x600213A")]
[Address(RVA = "0xB51A50", Offset = "0xB50A50", VA = "0x180B51A50")]
get
{
return null;
}
}
/// <summary>Gets a task that has already completed successfully.</summary>
/// <returns>The successfully completed task.</returns>
// Token: 0x170004AD RID: 1197
// (get) Token: 0x0600213B RID: 8507 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004AD")]
public static Task CompletedTask
{
[Token(Token = "0x600213B")]
[Address(RVA = "0xB517A0", Offset = "0xB507A0", VA = "0x180B517A0")]
get
{
return null;
}
}
// Token: 0x170004AE RID: 1198
// (get) Token: 0x0600213C RID: 8508 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004AE")]
internal ManualResetEventSlim CompletedEvent
{
[Token(Token = "0x600213C")]
[Address(RVA = "0xB51600", Offset = "0xB50600", VA = "0x180B51600")]
get
{
return null;
}
}
// Token: 0x170004AF RID: 1199
// (get) Token: 0x0600213D RID: 8509 RVA: 0x00016050 File Offset: 0x00014250
[Token(Token = "0x170004AF")]
internal bool IsSelfReplicatingRoot
{
[Token(Token = "0x600213D")]
[Address(RVA = "0xB51E50", Offset = "0xB50E50", VA = "0x180B51E50")]
get
{
return default(bool);
}
}
// Token: 0x170004B0 RID: 1200
// (get) Token: 0x0600213E RID: 8510 RVA: 0x00016068 File Offset: 0x00014268
[Token(Token = "0x170004B0")]
internal bool IsChildReplica
{
[Token(Token = "0x600213E")]
[Address(RVA = "0xB51D00", Offset = "0xB50D00", VA = "0x180B51D00")]
get
{
return default(bool);
}
}
// Token: 0x170004B1 RID: 1201
// (get) Token: 0x0600213F RID: 8511 RVA: 0x00016080 File Offset: 0x00014280
[Token(Token = "0x170004B1")]
internal int ActiveChildCount
{
[Token(Token = "0x600213F")]
[Address(RVA = "0xB514B0", Offset = "0xB504B0", VA = "0x180B514B0")]
get
{
return 0;
}
}
// Token: 0x170004B2 RID: 1202
// (get) Token: 0x06002140 RID: 8512 RVA: 0x00016098 File Offset: 0x00014298
[Token(Token = "0x170004B2")]
internal bool ExceptionRecorded
{
[Token(Token = "0x6002140")]
[Address(RVA = "0xB51990", Offset = "0xB50990", VA = "0x180B51990")]
get
{
return default(bool);
}
}
/// <summary>Gets whether the <see cref="T:System.Threading.Tasks.Task" /> completed due to an unhandled exception.</summary>
/// <returns>
/// <see langword="true" /> if the task has thrown an unhandled exception; otherwise <see langword="false" />.</returns>
// Token: 0x170004B3 RID: 1203
// (get) Token: 0x06002141 RID: 8513 RVA: 0x000160B0 File Offset: 0x000142B0
[Token(Token = "0x170004B3")]
public bool IsFaulted
{
[Token(Token = "0x6002141")]
[Address(RVA = "0xB51E30", Offset = "0xB50E30", VA = "0x180B51E30")]
get
{
return default(bool);
}
}
// Token: 0x170004B4 RID: 1204
// (get) Token: 0x06002142 RID: 8514 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x06002143 RID: 8515 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B4")]
internal ExecutionContext CapturedContext
{
[Token(Token = "0x6002142")]
[Address(RVA = "0xB51510", Offset = "0xB50510", VA = "0x180B51510")]
get
{
return null;
}
[Token(Token = "0x6002143")]
[Address(RVA = "0xB51FF0", Offset = "0xB50FF0", VA = "0x180B51FF0")]
set
{
}
}
// Token: 0x06002144 RID: 8516 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002144")]
[Address(RVA = "0xB4BC30", Offset = "0xB4AC30", VA = "0x180B4BC30")]
private static ExecutionContext CopyExecutionContext(ExecutionContext capturedContext)
{
return null;
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Threading.Tasks.Task" /> class.</summary>
/// <exception cref="T:System.InvalidOperationException">The task is not in one of the final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />, <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, or <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />.</exception>
// Token: 0x06002145 RID: 8517 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002145")]
[Address(RVA = "0xB4C570", Offset = "0xB4B570", VA = "0x180B4C570", Slot = "10")]
public void Dispose()
{
}
/// <summary>Disposes the <see cref="T:System.Threading.Tasks.Task" />, releasing all of its unmanaged resources.</summary>
/// <param name="disposing">A Boolean value that indicates whether this method is being called due to a call to <see cref="M:System.Threading.Tasks.Task.Dispose" />.</param>
/// <exception cref="T:System.InvalidOperationException">The task is not in one of the final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />, <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, or <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />.</exception>
// Token: 0x06002146 RID: 8518 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002146")]
[Address(RVA = "0xB4C5E0", Offset = "0xB4B5E0", VA = "0x180B4C5E0", Slot = "12")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x06002147 RID: 8519 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002147")]
[Address(RVA = "0xB4F7A0", Offset = "0xB4E7A0", VA = "0x180B4F7A0")]
internal void ScheduleAndStart(bool needsProtection)
{
}
// Token: 0x06002148 RID: 8520 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002148")]
[Address(RVA = "0xB49F30", Offset = "0xB48F30", VA = "0x180B49F30")]
internal void AddException(object exceptionObject)
{
}
// Token: 0x06002149 RID: 8521 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002149")]
[Address(RVA = "0xB49F40", Offset = "0xB48F40", VA = "0x180B49F40")]
internal void AddException(object exceptionObject, bool representsCancellation)
{
}
// Token: 0x0600214A RID: 8522 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600214A")]
[Address(RVA = "0xB4DE90", Offset = "0xB4CE90", VA = "0x180B4DE90")]
private AggregateException GetExceptions(bool includeTaskCanceledExceptions)
{
return null;
}
// Token: 0x0600214B RID: 8523 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600214B")]
[Address(RVA = "0xB4DCE0", Offset = "0xB4CCE0", VA = "0x180B4DCE0")]
internal ReadOnlyCollection<ExceptionDispatchInfo> GetExceptionDispatchInfos()
{
return null;
}
// Token: 0x0600214C RID: 8524 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600214C")]
[Address(RVA = "0xB4DCA0", Offset = "0xB4CCA0", VA = "0x180B4DCA0")]
internal ExceptionDispatchInfo GetCancellationExceptionDispatchInfo()
{
return null;
}
// Token: 0x0600214D RID: 8525 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600214D")]
[Address(RVA = "0xB506E0", Offset = "0xB4F6E0", VA = "0x180B506E0")]
internal void ThrowIfExceptional(bool includeTaskCanceledExceptions)
{
}
// Token: 0x0600214E RID: 8526 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600214E")]
[Address(RVA = "0xB50750", Offset = "0xB4F750", VA = "0x180B50750")]
internal void UpdateExceptionObservedStatus()
{
}
// Token: 0x170004B5 RID: 1205
// (get) Token: 0x0600214F RID: 8527 RVA: 0x000160C8 File Offset: 0x000142C8
[Token(Token = "0x170004B5")]
internal bool IsExceptionObservedByParent
{
[Token(Token = "0x600214F")]
[Address(RVA = "0xB51E10", Offset = "0xB50E10", VA = "0x180B51E10")]
get
{
return default(bool);
}
}
// Token: 0x170004B6 RID: 1206
// (get) Token: 0x06002150 RID: 8528 RVA: 0x000160E0 File Offset: 0x000142E0
[Token(Token = "0x170004B6")]
internal bool IsDelegateInvoked
{
[Token(Token = "0x6002150")]
[Address(RVA = "0xB51DF0", Offset = "0xB50DF0", VA = "0x180B51DF0")]
get
{
return default(bool);
}
}
// Token: 0x06002151 RID: 8529 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002151")]
[Address(RVA = "0xB4D990", Offset = "0xB4C990", VA = "0x180B4D990")]
internal void Finish(bool bUserDelegateExecuted)
{
}
// Token: 0x06002152 RID: 8530 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002152")]
[Address(RVA = "0xB4D700", Offset = "0xB4C700", VA = "0x180B4D700")]
internal void FinishStageTwo()
{
}
// Token: 0x06002153 RID: 8531 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002153")]
[Address(RVA = "0xB4D660", Offset = "0xB4C660", VA = "0x180B4D660")]
internal void FinishStageThree()
{
}
// Token: 0x06002154 RID: 8532 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002154")]
[Address(RVA = "0xB4EF20", Offset = "0xB4DF20", VA = "0x180B4EF20")]
internal void ProcessChildCompletion(Task childTask)
{
}
// Token: 0x06002155 RID: 8533 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002155")]
[Address(RVA = "0xB4A3A0", Offset = "0xB493A0", VA = "0x180B4A3A0")]
internal void AddExceptionsFromChildren()
{
}
// Token: 0x06002156 RID: 8534 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002156")]
[Address(RVA = "0xB4D8A0", Offset = "0xB4C8A0", VA = "0x180B4D8A0")]
internal void FinishThreadAbortedTask(bool bTAEAddedToExceptionHolder, bool delegateRan)
{
}
// Token: 0x06002157 RID: 8535 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002157")]
[Address(RVA = "0xB4CF10", Offset = "0xB4BF10", VA = "0x180B4CF10")]
private void Execute()
{
}
// Token: 0x06002158 RID: 8536 RVA: 0x000160F8 File Offset: 0x000142F8
[Token(Token = "0x6002158")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "13")]
internal virtual bool ShouldReplicate()
{
return default(bool);
}
// Token: 0x06002159 RID: 8537 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002159")]
[Address(RVA = "0xB4BCB0", Offset = "0xB4ACB0", VA = "0x180B4BCB0", Slot = "14")]
internal virtual Task CreateReplicaTask(Action<object> taskReplicaDelegate, object stateObject, Task parentTask, TaskScheduler taskScheduler, TaskCreationOptions creationOptionsForReplica, InternalTaskOptions internalOptionsForReplica)
{
return null;
}
// Token: 0x170004B7 RID: 1207
// (get) Token: 0x0600215A RID: 8538 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600215B RID: 8539 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B7")]
internal virtual object SavedStateForNextReplica
{
[Token(Token = "0x600215A")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "15")]
get
{
return null;
}
[Token(Token = "0x600215B")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "16")]
set
{
}
}
// Token: 0x170004B8 RID: 1208
// (get) Token: 0x0600215C RID: 8540 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600215D RID: 8541 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B8")]
internal virtual object SavedStateFromPreviousReplica
{
[Token(Token = "0x600215C")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "17")]
get
{
return null;
}
[Token(Token = "0x600215D")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "18")]
set
{
}
}
// Token: 0x170004B9 RID: 1209
// (get) Token: 0x0600215E RID: 8542 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x0600215F RID: 8543 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170004B9")]
internal virtual Task HandedOverChildReplica
{
[Token(Token = "0x600215E")]
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "19")]
get
{
return null;
}
[Token(Token = "0x600215F")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "20")]
set
{
}
}
// Token: 0x06002160 RID: 8544 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002160")]
[Address(RVA = "0xB4CB90", Offset = "0xB4BB90", VA = "0x180B4CB90")]
private static void ExecuteSelfReplicating(Task root)
{
}
// Token: 0x06002161 RID: 8545 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002161")]
[Address(RVA = "0xB502D0", Offset = "0xB4F2D0", VA = "0x180B502D0", Slot = "4")]
void IThreadPoolWorkItem.ExecuteWorkItem()
{
}
// Token: 0x06002162 RID: 8546 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002162")]
[Address(RVA = "0xB502E0", Offset = "0xB4F2E0", VA = "0x180B502E0", Slot = "5")]
void IThreadPoolWorkItem.MarkAborted(ThreadAbortException tae)
{
}
// Token: 0x06002163 RID: 8547 RVA: 0x00016110 File Offset: 0x00014310
[Token(Token = "0x6002163")]
[Address(RVA = "0xB4C9C0", Offset = "0xB4B9C0", VA = "0x180B4C9C0")]
internal bool ExecuteEntry(bool bPreventDoubleExecution)
{
return default(bool);
}
// Token: 0x06002164 RID: 8548 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002164")]
[Address(RVA = "0xB4CCA0", Offset = "0xB4BCA0", VA = "0x180B4CCA0")]
private void ExecuteWithThreadLocal(ref Task currentTaskSlot)
{
}
// Token: 0x06002165 RID: 8549 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002165")]
[Address(RVA = "0xB4D140", Offset = "0xB4C140", VA = "0x180B4D140")]
private static void ExecutionContextCallback(object obj)
{
}
// Token: 0x06002166 RID: 8550 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002166")]
[Address(RVA = "0xB4E1F0", Offset = "0xB4D1F0", VA = "0x180B4E1F0", Slot = "21")]
internal virtual void InnerInvoke()
{
}
// Token: 0x06002167 RID: 8551 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002167")]
[Address(RVA = "0xB4E1C0", Offset = "0xB4D1C0", VA = "0x180B4E1C0")]
internal void InnerInvokeWithArg(Task childTask)
{
}
// Token: 0x06002168 RID: 8552 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002168")]
[Address(RVA = "0xB4E070", Offset = "0xB4D070", VA = "0x180B4E070")]
private void HandleException(Exception unhandledException)
{
}
/// <summary>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <returns>An awaiter instance.</returns>
// Token: 0x06002169 RID: 8553 RVA: 0x00016128 File Offset: 0x00014328
[Token(Token = "0x6002169")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
public TaskAwaiter GetAwaiter()
{
return default(TaskAwaiter);
}
/// <summary>Configures an awaiter used to await this <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <param name="continueOnCapturedContext">
/// <see langword="true" /> to attempt to marshal the continuation back to the original context captured; otherwise, <see langword="false" />.</param>
/// <returns>An object used to await this task.</returns>
// Token: 0x0600216A RID: 8554 RVA: 0x00016140 File Offset: 0x00014340
[Token(Token = "0x600216A")]
[Address(RVA = "0xB4B420", Offset = "0xB4A420", VA = "0x180B4B420")]
public ConfiguredTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)
{
return default(ConfiguredTaskAwaitable);
}
// Token: 0x0600216B RID: 8555 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216B")]
[Address(RVA = "0xB4F9A0", Offset = "0xB4E9A0", VA = "0x180B4F9A0")]
internal void SetContinuationForAwait(Action continuationAction, bool continueOnCapturedContext, bool flowExecutionContext, ref StackCrawlMark stackMark)
{
}
/// <summary>Creates an awaitable task that asynchronously yields back to the current context when awaited.</summary>
/// <returns>A context that, when awaited, will asynchronously transition back into the current context at the time of the await. If the current <see cref="T:System.Threading.SynchronizationContext" /> is non-null, it is treated as the current context. Otherwise, the task scheduler that is associated with the currently executing task is treated as the current context.</returns>
// Token: 0x0600216C RID: 8556 RVA: 0x00016158 File Offset: 0x00014358
[Token(Token = "0x600216C")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
public static YieldAwaitable Yield()
{
return default(YieldAwaitable);
}
/// <summary>Waits for the <see cref="T:System.Threading.Tasks.Task" /> to complete execution.</summary>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> has been disposed.</exception>
/// <exception cref="T:System.AggregateException">The task was canceled. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains a <see cref="T:System.Threading.Tasks.TaskCanceledException" /> object.
/// -or-
/// An exception was thrown during the execution of the task. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains information about the exception or exceptions.</exception>
// Token: 0x0600216D RID: 8557 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216D")]
[Address(RVA = "0xB50880", Offset = "0xB4F880", VA = "0x180B50880")]
public void Wait()
{
}
/// <summary>Waits for the <see cref="T:System.Threading.Tasks.Task" /> to complete execution. The wait terminates if a timeout interval elapses or a cancellation token is canceled before the task completes.</summary>
/// <param name="millisecondsTimeout">The number of milliseconds to wait, or <see cref="F:System.Threading.Timeout.Infinite" /> (-1) to wait indefinitely.</param>
/// <param name="cancellationToken">A cancellation token to observe while waiting for the task to complete.</param>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Threading.Tasks.Task" /> completed execution within the allotted time; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.OperationCanceledException">The <paramref name="cancellationToken" /> was canceled.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="millisecondsTimeout" /> is a negative number other than -1, which represents an infinite time-out.</exception>
/// <exception cref="T:System.AggregateException">The task was canceled. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains a <see cref="T:System.Threading.Tasks.TaskCanceledException" /> object.
/// -or-
/// An exception was thrown during the execution of the task. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains information about the exception or exceptions.</exception>
// Token: 0x0600216E RID: 8558 RVA: 0x00016170 File Offset: 0x00014370
[Token(Token = "0x600216E")]
[Address(RVA = "0xB50980", Offset = "0xB4F980", VA = "0x180B50980")]
public bool Wait(int millisecondsTimeout, CancellationToken cancellationToken)
{
return default(bool);
}
// Token: 0x0600216F RID: 8559 RVA: 0x00016188 File Offset: 0x00014388
[Token(Token = "0x600216F")]
[Address(RVA = "0xB50E60", Offset = "0xB4FE60", VA = "0x180B50E60")]
private bool WrappedTryRunInline()
{
return default(bool);
}
// Token: 0x06002170 RID: 8560 RVA: 0x000161A0 File Offset: 0x000143A0
[Token(Token = "0x6002170")]
[Address(RVA = "0xB4EA10", Offset = "0xB4DA10", VA = "0x180B4EA10")]
internal bool InternalWait(int millisecondsTimeout, CancellationToken cancellationToken)
{
return default(bool);
}
// Token: 0x06002171 RID: 8561 RVA: 0x000161B8 File Offset: 0x000143B8
[Token(Token = "0x6002171")]
[Address(RVA = "0xB4FCA0", Offset = "0xB4ECA0", VA = "0x180B4FCA0")]
private bool SpinThenBlockingWait(int millisecondsTimeout, CancellationToken cancellationToken)
{
return default(bool);
}
// Token: 0x06002172 RID: 8562 RVA: 0x000161D0 File Offset: 0x000143D0
[Token(Token = "0x6002172")]
[Address(RVA = "0xB4FFA0", Offset = "0xB4EFA0", VA = "0x180B4FFA0")]
private bool SpinWait(int millisecondsTimeout)
{
return default(bool);
}
// Token: 0x06002173 RID: 8563 RVA: 0x000161E8 File Offset: 0x000143E8
[Token(Token = "0x6002173")]
[Address(RVA = "0xB4E280", Offset = "0xB4D280", VA = "0x180B4E280")]
internal bool InternalCancel(bool bCancelNonExecutingOnly)
{
return default(bool);
}
// Token: 0x06002174 RID: 8564 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002174")]
[Address(RVA = "0xB4F180", Offset = "0xB4E180", VA = "0x180B4F180")]
internal void RecordInternalCancellationRequest()
{
}
// Token: 0x06002175 RID: 8565 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002175")]
[Address(RVA = "0xB4F230", Offset = "0xB4E230", VA = "0x180B4F230")]
internal void RecordInternalCancellationRequest(CancellationToken tokenToRecord)
{
}
// Token: 0x06002176 RID: 8566 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002176")]
[Address(RVA = "0xB4F0C0", Offset = "0xB4E0C0", VA = "0x180B4F0C0")]
internal void RecordInternalCancellationRequest(CancellationToken tokenToRecord, object cancellationException)
{
}
// Token: 0x06002177 RID: 8567 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002177")]
[Address(RVA = "0xB4B320", Offset = "0xB4A320", VA = "0x180B4B320")]
internal void CancellationCleanupLogic()
{
}
// Token: 0x06002178 RID: 8568 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002178")]
[Address(RVA = "0xB4F970", Offset = "0xB4E970", VA = "0x180B4F970")]
private void SetCancellationAcknowledged()
{
}
// Token: 0x06002179 RID: 8569 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002179")]
[Address(RVA = "0xB4D1F0", Offset = "0xB4C1F0", VA = "0x180B4D1F0")]
internal void FinishContinuations()
{
}
// Token: 0x0600217A RID: 8570 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600217A")]
[Address(RVA = "0xB4ED80", Offset = "0xB4DD80", VA = "0x180B4ED80")]
private void LogFinishCompletionNotification()
{
}
/// <summary>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes.</summary>
/// <param name="continuationAction">An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param>
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationAction" /> argument is <see langword="null" />.</exception>
// Token: 0x0600217B RID: 8571 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217B")]
[Address(RVA = "0xB4BBA0", Offset = "0xB4ABA0", VA = "0x180B4BBA0")]
public Task ContinueWith(Action<Task> continuationAction)
{
return null;
}
/// <summary>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task" /> completes. The continuation uses a specified scheduler.</summary>
/// <param name="continuationAction">An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task as an argument.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param>
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationAction" /> argument is <see langword="null" />.
/// -or-
/// The <paramref name="scheduler" /> argument is null.</exception>
// Token: 0x0600217C RID: 8572 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217C")]
[Address(RVA = "0xB4B670", Offset = "0xB4A670", VA = "0x180B4B670")]
public Task ContinueWith(Action<Task> continuationAction, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates a continuation that executes when the target task competes according to the specified <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />. The continuation receives a cancellation token and uses a specified scheduler.</summary>
/// <param name="continuationAction">An action to run according to the specified <paramref name="continuationOptions" />. When run, the delegate will be passed the completed task as an argument.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new continuation task.</param>
/// <param name="continuationOptions">Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param>
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> that created the token has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationAction" /> argument is null.
/// -or-
/// The <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="continuationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</exception>
// Token: 0x0600217D RID: 8573 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217D")]
[Address(RVA = "0xB4B840", Offset = "0xB4A840", VA = "0x180B4B840")]
public Task ContinueWith(Action<Task> continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
return null;
}
// Token: 0x0600217E RID: 8574 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217E")]
[Address(RVA = "0xB4B880", Offset = "0xB4A880", VA = "0x180B4B880")]
private Task ContinueWith(Action<Task> continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
/// <summary>Creates a continuation that receives caller-supplied state information and a cancellation token and that executes when the target <see cref="T:System.Threading.Tasks.Task" /> completes. The continuation executes based on a set of specified conditions and uses a specified scheduler.</summary>
/// <param name="continuationAction">An action to run when the <see cref="T:System.Threading.Tasks.Task" /> completes. When run, the delegate will be passed the completed task and the caller-supplied state object as arguments.</param>
/// <param name="state">An object representing data to be used by the continuation action.</param>
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new continuation task.</param>
/// <param name="continuationOptions">Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param>
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="scheduler" /> argument is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="continuationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
// Token: 0x0600217F RID: 8575 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600217F")]
[Address(RVA = "0xB4B6A0", Offset = "0xB4A6A0", VA = "0x180B4B6A0")]
public Task ContinueWith(Action<Task, object> continuationAction, object state, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
return null;
}
// Token: 0x06002180 RID: 8576 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002180")]
[Address(RVA = "0xB4BA10", Offset = "0xB4AA10", VA = "0x180B4BA10")]
private Task ContinueWith(Action<Task, object> continuationAction, object state, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
/// <summary>Creates a continuation that executes asynchronously when the target <see cref="T:System.Threading.Tasks.Task`1" /> completes and returns a value.</summary>
/// <param name="continuationFunction">A function to run when the <see cref="T:System.Threading.Tasks.Task`1" /> completes. When run, the delegate will be passed the completed task as an argument.</param>
/// <typeparam name="TResult">The type of the result produced by the continuation.</typeparam>
/// <returns>A new continuation task.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationFunction" /> argument is null.</exception>
// Token: 0x06002181 RID: 8577 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002181")]
[Address(RVA = "0x25FF590", Offset = "0x25FE590", VA = "0x1825FF590")]
public Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction)
{
return null;
}
// Token: 0x06002182 RID: 8578 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002182")]
[Address(RVA = "0x25FF640", Offset = "0x25FE640", VA = "0x1825FF640")]
private Task<TResult> ContinueWith<TResult>(Func<Task, TResult> continuationFunction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x06002183 RID: 8579 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002183")]
[Address(RVA = "0xB4BD70", Offset = "0xB4AD70", VA = "0x180B4BD70")]
internal static void CreationOptionsFromContinuationOptions(TaskContinuationOptions continuationOptions, out TaskCreationOptions creationOptions, out InternalTaskOptions internalOptions)
{
}
// Token: 0x06002184 RID: 8580 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002184")]
[Address(RVA = "0xB4B450", Offset = "0xB4A450", VA = "0x180B4B450")]
internal void ContinueWithCore(Task continuationTask, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions options)
{
}
// Token: 0x06002185 RID: 8581 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002185")]
[Address(RVA = "0xB49EC0", Offset = "0xB48EC0", VA = "0x180B49EC0")]
internal void AddCompletionAction(ITaskCompletionAction action)
{
}
// Token: 0x06002186 RID: 8582 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002186")]
[Address(RVA = "0xB49E40", Offset = "0xB48E40", VA = "0x180B49E40")]
private void AddCompletionAction(ITaskCompletionAction action, bool addBeforeOthers)
{
}
// Token: 0x06002187 RID: 8583 RVA: 0x00016200 File Offset: 0x00014400
[Token(Token = "0x6002187")]
[Address(RVA = "0xB4A760", Offset = "0xB49760", VA = "0x180B4A760")]
private bool AddTaskContinuationComplex(object tc, bool addBeforeOthers)
{
return default(bool);
}
// Token: 0x06002188 RID: 8584 RVA: 0x00016218 File Offset: 0x00014418
[Token(Token = "0x6002188")]
[Address(RVA = "0xB4AA60", Offset = "0xB49A60", VA = "0x180B4AA60")]
private bool AddTaskContinuation(object tc, bool addBeforeOthers)
{
return default(bool);
}
// Token: 0x06002189 RID: 8585 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002189")]
[Address(RVA = "0xB4F2C0", Offset = "0xB4E2C0", VA = "0x180B4F2C0")]
internal void RemoveContinuation(object continuationObject)
{
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task`1" /> that's completed successfully with the specified result.</summary>
/// <param name="result">The result to store into the completed task.</param>
/// <typeparam name="TResult">The type of the result returned by the task.</typeparam>
/// <returns>The successfully completed task.</returns>
// Token: 0x0600218A RID: 8586 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218A")]
[Address(RVA = "0x21B75F0", Offset = "0x21B65F0", VA = "0x1821B75F0")]
public static Task<TResult> FromResult<TResult>(TResult result)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task" /> that has completed with a specified exception.</summary>
/// <param name="exception">The exception with which to complete the task.</param>
/// <returns>The faulted task.</returns>
// Token: 0x0600218B RID: 8587 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218B")]
[Address(RVA = "0xB4DC40", Offset = "0xB4CC40", VA = "0x180B4DC40")]
public static Task FromException(Exception exception)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task`1" /> that's completed with a specified exception.</summary>
/// <param name="exception">The exception with which to complete the task.</param>
/// <typeparam name="TResult">The type of the result returned by the task.</typeparam>
/// <returns>The faulted task.</returns>
// Token: 0x0600218C RID: 8588 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218C")]
[Address(RVA = "0x26004D0", Offset = "0x25FF4D0", VA = "0x1826004D0")]
public static Task<TResult> FromException<TResult>(Exception exception)
{
return null;
}
// Token: 0x0600218D RID: 8589 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218D")]
[Address(RVA = "0xB4DB20", Offset = "0xB4CB20", VA = "0x180B4DB20")]
[FriendAccessAllowed]
internal static Task FromCancellation(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600218E RID: 8590 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218E")]
[Address(RVA = "0x25FFD40", Offset = "0x25FED40", VA = "0x1825FFD40")]
[FriendAccessAllowed]
internal static Task<TResult> FromCancellation<TResult>(CancellationToken cancellationToken)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task`1" /> that's completed due to cancellation with a specified cancellation token.</summary>
/// <param name="cancellationToken">The cancellation token with which to complete the task.</param>
/// <typeparam name="TResult">The type of the result returned by the task.</typeparam>
/// <returns>The canceled task.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">Cancellation has not been requested for <paramref name="cancellationToken" />; its <see cref="P:System.Threading.CancellationToken.IsCancellationRequested" /> property is <see langword="false" />.</exception>
// Token: 0x0600218F RID: 8591 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600218F")]
[Address(RVA = "0x25FFAB0", Offset = "0x25FEAB0", VA = "0x1825FFAB0")]
public static Task<TResult> FromCanceled<TResult>(CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06002190 RID: 8592 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002190")]
[Address(RVA = "0x25FFED0", Offset = "0x25FEED0", VA = "0x1825FFED0")]
internal static Task<TResult> FromCancellation<TResult>(OperationCanceledException exception)
{
return null;
}
/// <summary>Queues the specified work to run on the thread pool and returns a <see cref="T:System.Threading.Tasks.Task" /> object that represents that work.</summary>
/// <param name="action">The work to execute asynchronously</param>
/// <returns>A task that represents the work queued to execute in the ThreadPool.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="action" /> parameter was <see langword="null" />.</exception>
// Token: 0x06002191 RID: 8593 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002191")]
[Address(RVA = "0xB4F690", Offset = "0xB4E690", VA = "0x180B4F690")]
public static Task Run(Action action)
{
return null;
}
/// <summary>Queues the specified work to run on the thread pool and returns a <see cref="T:System.Threading.Tasks.Task`1" /> object that represents that work.</summary>
/// <param name="function">The work to execute asynchronously.</param>
/// <typeparam name="TResult">The return type of the task.</typeparam>
/// <returns>A task object that represents the work queued to execute in the thread pool.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="function" /> parameter is <see langword="null" />.</exception>
// Token: 0x06002192 RID: 8594 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002192")]
[Address(RVA = "0x2600910", Offset = "0x25FF910", VA = "0x182600910")]
public static Task<TResult> Run<TResult>(Func<TResult> function)
{
return null;
}
/// <summary>Creates a task that completes after a specified time interval.</summary>
/// <param name="delay">The time span to wait before completing the returned task, or <see langword="TimeSpan.FromMilliseconds(-1)" /> to wait indefinitely.</param>
/// <returns>A task that represents the time delay.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="delay" /> represents a negative time interval other than <see langword="TimeSpan.FromMillseconds(-1)" />.
/// -or-
/// The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
// Token: 0x06002193 RID: 8595 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002193")]
[Address(RVA = "0xB4BFE0", Offset = "0xB4AFE0", VA = "0x180B4BFE0")]
public static Task Delay(TimeSpan delay)
{
return null;
}
/// <summary>Creates a cancellable task that completes after a specified time interval.</summary>
/// <param name="delay">The time span to wait before completing the returned task, or <see langword="TimeSpan.FromMilliseconds(-1)" /> to wait indefinitely.</param>
/// <param name="cancellationToken">A cancellation token to observe while waiting for the task to complete.</param>
/// <returns>A task that represents the time delay.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="delay" /> represents a negative time interval other than <see langword="TimeSpan.FromMillseconds(-1)" />.
/// -or-
/// The <paramref name="delay" /> argument's <see cref="P:System.TimeSpan.TotalMilliseconds" /> property is greater than <see cref="F:System.Int32.MaxValue" />.</exception>
/// <exception cref="T:System.Threading.Tasks.TaskCanceledException">The task has been canceled.</exception>
/// <exception cref="T:System.ObjectDisposedException">The provided <paramref name="cancellationToken" /> has already been disposed.</exception>
// Token: 0x06002194 RID: 8596 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002194")]
[Address(RVA = "0xB4BF10", Offset = "0xB4AF10", VA = "0x180B4BF10")]
public static Task Delay(TimeSpan delay, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Creates a task that completes after a specified number of milliseconds.</summary>
/// <param name="millisecondsDelay">The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely.</param>
/// <returns>A task that represents the time delay.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsDelay" /> argument is less than -1.</exception>
// Token: 0x06002195 RID: 8597 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002195")]
[Address(RVA = "0xB4BEB0", Offset = "0xB4AEB0", VA = "0x180B4BEB0")]
public static Task Delay(int millisecondsDelay)
{
return null;
}
/// <summary>Creates a cancellable task that completes after a specified number of milliseconds.</summary>
/// <param name="millisecondsDelay">The number of milliseconds to wait before completing the returned task, or -1 to wait indefinitely.</param>
/// <param name="cancellationToken">A cancellation token to observe while waiting for the task to complete.</param>
/// <returns>A task that represents the time delay.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="millisecondsDelay" /> argument is less than -1.</exception>
/// <exception cref="T:System.Threading.Tasks.TaskCanceledException">The task has been canceled.</exception>
/// <exception cref="T:System.ObjectDisposedException">The provided <paramref name="cancellationToken" /> has already been disposed.</exception>
// Token: 0x06002196 RID: 8598 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002196")]
[Address(RVA = "0xB4C0E0", Offset = "0xB4B0E0", VA = "0x180B4C0E0")]
public static Task Delay(int millisecondsDelay, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Creates a task that will complete when all of the <see cref="T:System.Threading.Tasks.Task" /> objects in an array have completed.</summary>
/// <param name="tasks">The tasks to wait on for completion.</param>
/// <returns>A task that represents the completion of all of the supplied tasks.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="tasks" /> argument was <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="tasks" /> array contained a <see langword="null" /> task.</exception>
// Token: 0x06002197 RID: 8599 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002197")]
[Address(RVA = "0xB50AD0", Offset = "0xB4FAD0", VA = "0x180B50AD0")]
public static Task WhenAll(params Task[] tasks)
{
return null;
}
// Token: 0x06002198 RID: 8600 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002198")]
[Address(RVA = "0xB4EB80", Offset = "0xB4DB80", VA = "0x180B4EB80")]
private static Task InternalWhenAll(Task[] tasks)
{
return null;
}
/// <summary>Creates a task that will complete when any of the supplied tasks have completed.</summary>
/// <param name="tasks">The tasks to wait on for completion.</param>
/// <returns>A task that represents the completion of one of the supplied tasks. The return task's Result is the task that completed.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="tasks" /> argument was null.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="tasks" /> array contained a null task, or was empty.</exception>
// Token: 0x06002199 RID: 8601 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002199")]
[Address(RVA = "0xB50CA0", Offset = "0xB4FCA0", VA = "0x180B50CA0")]
public static Task<Task> WhenAny(params Task[] tasks)
{
return null;
}
// Token: 0x0400128A RID: 4746
[Token(Token = "0x400128A")]
[ThreadStatic]
internal static Task t_currentTask;
// Token: 0x0400128B RID: 4747
[Token(Token = "0x400128B")]
[ThreadStatic]
private static StackGuard t_stackGuard;
// Token: 0x0400128C RID: 4748
[Token(Token = "0x400128C")]
internal static int s_taskIdCounter;
// Token: 0x0400128D RID: 4749
[Token(Token = "0x400128D")]
private static readonly TaskFactory s_factory;
// Token: 0x0400128E RID: 4750
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400128E")]
private int m_taskId;
// Token: 0x0400128F RID: 4751
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400128F")]
internal object m_action;
// Token: 0x04001290 RID: 4752
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4001290")]
internal object m_stateObject;
// Token: 0x04001291 RID: 4753
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001291")]
internal TaskScheduler m_taskScheduler;
// Token: 0x04001292 RID: 4754
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001292")]
internal readonly Task m_parent;
// Token: 0x04001293 RID: 4755
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001293")]
internal int m_stateFlags;
// Token: 0x04001294 RID: 4756
[Token(Token = "0x4001294")]
private const int OptionsMask = 65535;
// Token: 0x04001295 RID: 4757
[Token(Token = "0x4001295")]
internal const int TASK_STATE_STARTED = 65536;
// Token: 0x04001296 RID: 4758
[Token(Token = "0x4001296")]
internal const int TASK_STATE_DELEGATE_INVOKED = 131072;
// Token: 0x04001297 RID: 4759
[Token(Token = "0x4001297")]
internal const int TASK_STATE_DISPOSED = 262144;
// Token: 0x04001298 RID: 4760
[Token(Token = "0x4001298")]
internal const int TASK_STATE_EXCEPTIONOBSERVEDBYPARENT = 524288;
// Token: 0x04001299 RID: 4761
[Token(Token = "0x4001299")]
internal const int TASK_STATE_CANCELLATIONACKNOWLEDGED = 1048576;
// Token: 0x0400129A RID: 4762
[Token(Token = "0x400129A")]
internal const int TASK_STATE_FAULTED = 2097152;
// Token: 0x0400129B RID: 4763
[Token(Token = "0x400129B")]
internal const int TASK_STATE_CANCELED = 4194304;
// Token: 0x0400129C RID: 4764
[Token(Token = "0x400129C")]
internal const int TASK_STATE_WAITING_ON_CHILDREN = 8388608;
// Token: 0x0400129D RID: 4765
[Token(Token = "0x400129D")]
internal const int TASK_STATE_RAN_TO_COMPLETION = 16777216;
// Token: 0x0400129E RID: 4766
[Token(Token = "0x400129E")]
internal const int TASK_STATE_WAITINGFORACTIVATION = 33554432;
// Token: 0x0400129F RID: 4767
[Token(Token = "0x400129F")]
internal const int TASK_STATE_COMPLETION_RESERVED = 67108864;
// Token: 0x040012A0 RID: 4768
[Token(Token = "0x40012A0")]
internal const int TASK_STATE_THREAD_WAS_ABORTED = 134217728;
// Token: 0x040012A1 RID: 4769
[Token(Token = "0x40012A1")]
internal const int TASK_STATE_WAIT_COMPLETION_NOTIFICATION = 268435456;
// Token: 0x040012A2 RID: 4770
[Token(Token = "0x40012A2")]
internal const int TASK_STATE_EXECUTIONCONTEXT_IS_NULL = 536870912;
// Token: 0x040012A3 RID: 4771
[Token(Token = "0x40012A3")]
internal const int TASK_STATE_TASKSCHEDULED_WAS_FIRED = 1073741824;
// Token: 0x040012A4 RID: 4772
[Token(Token = "0x40012A4")]
private const int TASK_STATE_COMPLETED_MASK = 23068672;
// Token: 0x040012A5 RID: 4773
[Token(Token = "0x40012A5")]
private const int CANCELLATION_REQUESTED = 1;
// Token: 0x040012A6 RID: 4774
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40012A6")]
private object m_continuationObject;
// Token: 0x040012A7 RID: 4775
[Token(Token = "0x40012A7")]
private static readonly object s_taskCompletionSentinel;
// Token: 0x040012A8 RID: 4776
[Token(Token = "0x40012A8")]
[FriendAccessAllowed]
internal static bool s_asyncDebuggingEnabled;
// Token: 0x040012A9 RID: 4777
[Token(Token = "0x40012A9")]
private static readonly Dictionary<int, Task> s_currentActiveTasks;
// Token: 0x040012AA RID: 4778
[Token(Token = "0x40012AA")]
private static readonly object s_activeTasksLock;
// Token: 0x040012AB RID: 4779
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40012AB")]
internal Task.ContingentProperties m_contingentProperties;
// Token: 0x040012AC RID: 4780
[Token(Token = "0x40012AC")]
private static readonly Action<object> s_taskCancelCallback;
// Token: 0x040012AD RID: 4781
[Token(Token = "0x40012AD")]
private static readonly Func<Task.ContingentProperties> s_createContingentProperties;
// Token: 0x040012AE RID: 4782
[Token(Token = "0x40012AE")]
private static Task s_completedTask;
// Token: 0x040012AF RID: 4783
[Token(Token = "0x40012AF")]
private static readonly Predicate<Task> s_IsExceptionObservedByParentPredicate;
// Token: 0x040012B0 RID: 4784
[Token(Token = "0x40012B0")]
private static ContextCallback s_ecCallback;
// Token: 0x040012B1 RID: 4785
[Token(Token = "0x40012B1")]
private static readonly Predicate<object> s_IsTaskContinuationNullPredicate;
// Token: 0x0200038F RID: 911
[Token(Token = "0x200038F")]
internal class ContingentProperties
{
// Token: 0x0600219B RID: 8603 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219B")]
[Address(RVA = "0xB3F550", Offset = "0xB3E550", VA = "0x180B3F550")]
internal void SetCompleted()
{
}
// Token: 0x0600219C RID: 8604 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219C")]
[Address(RVA = "0xB3F4D0", Offset = "0xB3E4D0", VA = "0x180B3F4D0")]
internal void DeregisterCancellationCallback()
{
}
// Token: 0x0600219D RID: 8605 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219D")]
[Address(RVA = "0xB3F580", Offset = "0xB3E580", VA = "0x180B3F580")]
public ContingentProperties()
{
}
// Token: 0x040012B2 RID: 4786
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40012B2")]
internal ExecutionContext m_capturedContext;
// Token: 0x040012B3 RID: 4787
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40012B3")]
internal ManualResetEventSlim m_completionEvent;
// Token: 0x040012B4 RID: 4788
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40012B4")]
internal TaskExceptionHolder m_exceptionsHolder;
// Token: 0x040012B5 RID: 4789
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40012B5")]
internal CancellationToken m_cancellationToken;
// Token: 0x040012B6 RID: 4790
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40012B6")]
internal Shared<CancellationTokenRegistration> m_cancellationRegistration;
// Token: 0x040012B7 RID: 4791
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40012B7")]
internal int m_internalCancellationRequested;
// Token: 0x040012B8 RID: 4792
[FieldOffset(Offset = "0x3C")]
[Token(Token = "0x40012B8")]
internal int m_completionCountdown;
// Token: 0x040012B9 RID: 4793
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40012B9")]
internal List<Task> m_exceptionalChildren;
}
// Token: 0x02000390 RID: 912
[Token(Token = "0x2000390")]
private sealed class SetOnInvokeMres : ManualResetEventSlim, ITaskCompletionAction
{
// Token: 0x0600219E RID: 8606 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219E")]
[Address(RVA = "0xB44EF0", Offset = "0xB43EF0", VA = "0x180B44EF0")]
internal SetOnInvokeMres()
{
}
// Token: 0x0600219F RID: 8607 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600219F")]
[Address(RVA = "0xB44EE0", Offset = "0xB43EE0", VA = "0x180B44EE0", Slot = "6")]
public void Invoke(Task completingTask)
{
}
}
// Token: 0x02000391 RID: 913
[Token(Token = "0x2000391")]
private sealed class DelayPromise : Task<VoidTaskResult>
{
// Token: 0x060021A0 RID: 8608 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A0")]
[Address(RVA = "0xB3F8F0", Offset = "0xB3E8F0", VA = "0x180B3F8F0")]
internal DelayPromise(CancellationToken token)
{
}
// Token: 0x060021A1 RID: 8609 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A1")]
[Address(RVA = "0xB3F790", Offset = "0xB3E790", VA = "0x180B3F790")]
internal void Complete()
{
}
// Token: 0x040012BA RID: 4794
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40012BA")]
internal readonly CancellationToken Token;
// Token: 0x040012BB RID: 4795
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40012BB")]
internal CancellationTokenRegistration Registration;
// Token: 0x040012BC RID: 4796
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x40012BC")]
internal Timer Timer;
}
// Token: 0x02000392 RID: 914
[Token(Token = "0x2000392")]
private sealed class WhenAllPromise : Task<VoidTaskResult>, ITaskCompletionAction
{
// Token: 0x060021A2 RID: 8610 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A2")]
[Address(RVA = "0xB57680", Offset = "0xB56680", VA = "0x180B57680")]
internal WhenAllPromise(Task[] tasks)
{
}
// Token: 0x060021A3 RID: 8611 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021A3")]
[Address(RVA = "0xB573B0", Offset = "0xB563B0", VA = "0x180B573B0", Slot = "22")]
public void Invoke(Task completedTask)
{
}
// Token: 0x170004BA RID: 1210
// (get) Token: 0x060021A4 RID: 8612 RVA: 0x00016230 File Offset: 0x00014430
[Token(Token = "0x170004BA")]
internal override bool ShouldNotifyDebuggerOfWaitCompletion
{
[Token(Token = "0x60021A4")]
[Address(RVA = "0xB57820", Offset = "0xB56820", VA = "0x180B57820", Slot = "11")]
get
{
return default(bool);
}
}
// Token: 0x040012BD RID: 4797
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40012BD")]
private readonly Task[] m_tasks;
// Token: 0x040012BE RID: 4798
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x40012BE")]
private int m_count;
}
}
}
+290
View File
@@ -0,0 +1,290 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents an asynchronous operation that can return a value.</summary>
/// <typeparam name="TResult">The type of the result produced by this <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
// Token: 0x02000375 RID: 885
[Token(Token = "0x2000375")]
[DebuggerTypeProxy(typeof(SystemThreadingTasks_FutureDebugView<>))]
[DebuggerDisplay("Id = {Id}, Status = {Status}, Method = {DebuggerDisplayMethodDescription}, Result = {DebuggerDisplayResultDescription}")]
public class Task<TResult> : Task
{
// Token: 0x060020AE RID: 8366 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020AE")]
[Address(RVA = "0x33CD4D0", Offset = "0x33CC4D0", VA = "0x1833CD4D0")]
internal Task()
{
}
// Token: 0x060020AF RID: 8367 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020AF")]
[Address(RVA = "0x33D14A0", Offset = "0x33D04A0", VA = "0x1833D14A0")]
internal Task(object state, TaskCreationOptions options)
{
}
// Token: 0x060020B0 RID: 8368 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B0")]
[Address(RVA = "0x33CEE40", Offset = "0x33CDE40", VA = "0x1833CEE40")]
internal Task(TResult result)
{
}
// Token: 0x060020B1 RID: 8369 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B1")]
[Address(RVA = "0x33CE5B0", Offset = "0x33CD5B0", VA = "0x1833CE5B0")]
internal Task(bool canceled, TResult result, TaskCreationOptions creationOptions, CancellationToken ct)
{
}
/// <summary>Initializes a new <see cref="T:System.Threading.Tasks.Task`1" /> with the specified action, state, and options.</summary>
/// <param name="function">The delegate that represents the code to execute in the task. When the function has completed, the task's <see cref="P:System.Threading.Tasks.Task`1.Result" /> property will be set to return the result value of the function.</param>
/// <param name="state">An object representing data to be used by the function.</param>
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> to be assigned to the new task.</param>
/// <param name="creationOptions">The <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> used to customize the task's behavior.</param>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.CancellationTokenSource" /> that created <paramref name="cancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="creationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskCreationOptions" />.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="function" /> argument is null.</exception>
// Token: 0x060020B2 RID: 8370 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B2")]
[Address(RVA = "0x33CE390", Offset = "0x33CD390", VA = "0x1833CE390")]
public Task(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions)
{
}
// Token: 0x060020B3 RID: 8371 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B3")]
[Address(RVA = "0x33CE7E0", Offset = "0x33CD7E0", VA = "0x1833CE7E0")]
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
}
// Token: 0x060020B4 RID: 8372 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B4")]
[Address(RVA = "0x33CD860", Offset = "0x33CC860", VA = "0x1833CD860")]
internal Task(Func<TResult> valueSelector, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x060020B5 RID: 8373 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B5")]
[Address(RVA = "0x33CFB30", Offset = "0x33CEB30", VA = "0x1833CFB30")]
internal Task(Func<object, TResult> valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
}
// Token: 0x060020B6 RID: 8374 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020B6")]
[Address(RVA = "0x33CFA10", Offset = "0x33CEA10", VA = "0x1833CFA10")]
internal Task(Delegate valueSelector, object state, Task parent, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
{
}
// Token: 0x060020B7 RID: 8375 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020B7")]
[Address(RVA = "0x33C96F0", Offset = "0x33C86F0", VA = "0x1833C96F0")]
internal static Task<TResult> StartNew(Task parent, Func<TResult> function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x060020B8 RID: 8376 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020B8")]
[Address(RVA = "0x33CBAF0", Offset = "0x33CAAF0", VA = "0x1833CBAF0")]
internal static Task<TResult> StartNew(Task parent, Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x060020B9 RID: 8377 RVA: 0x00015BE8 File Offset: 0x00013DE8
[Token(Token = "0x60020B9")]
[Address(RVA = "0x3379320", Offset = "0x3378320", VA = "0x183379320")]
internal bool TrySetResult(TResult result)
{
return default(bool);
}
// Token: 0x060020BA RID: 8378 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020BA")]
[Address(RVA = "0x3377630", Offset = "0x3376630", VA = "0x183377630")]
internal void DangerousSetResult(TResult result)
{
}
/// <summary>Gets the result value of this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <returns>The result value of this <see cref="T:System.Threading.Tasks.Task`1" />, which is of the same type as the task's type parameter.</returns>
/// <exception cref="T:System.AggregateException">The task was canceled. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains a <see cref="T:System.Threading.Tasks.TaskCanceledException" /> object.
/// -or-
/// An exception was thrown during the execution of the task. The <see cref="P:System.AggregateException.InnerExceptions" /> collection contains information about the exception or exceptions.</exception>
// Token: 0x1700048D RID: 1165
// (get) Token: 0x060020BB RID: 8379 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700048D")]
[DebuggerBrowsable(DebuggerBrowsableState.Never)]
public TResult Result
{
[Token(Token = "0x60020BB")]
[Address(RVA = "0x337BDA0", Offset = "0x337ADA0", VA = "0x18337BDA0")]
get
{
return null;
}
}
// Token: 0x1700048E RID: 1166
// (get) Token: 0x060020BC RID: 8380 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700048E")]
internal TResult ResultOnSuccess
{
[Token(Token = "0x60020BC")]
[Address(RVA = "0x610D70", Offset = "0x60FD70", VA = "0x180610D70")]
get
{
return null;
}
}
// Token: 0x060020BD RID: 8381 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020BD")]
[Address(RVA = "0x3377760", Offset = "0x3376760", VA = "0x183377760")]
internal TResult GetResultCore(bool waitCompletionNotification)
{
return null;
}
// Token: 0x060020BE RID: 8382 RVA: 0x00015C00 File Offset: 0x00013E00
[Token(Token = "0x60020BE")]
[Address(RVA = "0x33792A0", Offset = "0x33782A0", VA = "0x1833792A0")]
internal bool TrySetException(object exceptionObject)
{
return default(bool);
}
// Token: 0x060020BF RID: 8383 RVA: 0x00015C18 File Offset: 0x00013E18
[Token(Token = "0x60020BF")]
[Address(RVA = "0x3379270", Offset = "0x3378270", VA = "0x183379270")]
internal bool TrySetCanceled(CancellationToken tokenToRecord)
{
return default(bool);
}
// Token: 0x060020C0 RID: 8384 RVA: 0x00015C30 File Offset: 0x00013E30
[Token(Token = "0x60020C0")]
[Address(RVA = "0x33791F0", Offset = "0x33781F0", VA = "0x1833791F0")]
internal bool TrySetCanceled(CancellationToken tokenToRecord, object cancellationException)
{
return default(bool);
}
/// <summary>Provides access to factory methods for creating and configuring <see cref="T:System.Threading.Tasks.Task`1" /> instances.</summary>
/// <returns>A factory object that can create a variety of <see cref="T:System.Threading.Tasks.Task`1" /> objects.</returns>
// Token: 0x1700048F RID: 1167
// (get) Token: 0x060020C1 RID: 8385 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700048F")]
public new static TaskFactory<TResult> Factory
{
[Token(Token = "0x60020C1")]
[Address(RVA = "0x337BBA0", Offset = "0x337ABA0", VA = "0x18337BBA0")]
get
{
return null;
}
}
// Token: 0x060020C2 RID: 8386 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020C2")]
[Address(RVA = "0x3377A90", Offset = "0x3376A90", VA = "0x183377A90", Slot = "21")]
internal override void InnerInvoke()
{
}
/// <summary>Gets an awaiter used to await this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <returns>An awaiter instance.</returns>
// Token: 0x060020C3 RID: 8387 RVA: 0x00015C48 File Offset: 0x00013E48
[Token(Token = "0x60020C3")]
[Address(RVA = "0x4A65C0", Offset = "0x4A55C0", VA = "0x1804A65C0")]
public new TaskAwaiter<TResult> GetAwaiter()
{
return default(TaskAwaiter<TResult>);
}
/// <summary>Configures an awaiter used to await this <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <param name="continueOnCapturedContext">true to attempt to marshal the continuation back to the original context captured; otherwise, false.</param>
/// <returns>An object used to await this task.</returns>
// Token: 0x060020C4 RID: 8388 RVA: 0x00015C60 File Offset: 0x00013E60
[Token(Token = "0x60020C4")]
[Address(RVA = "0x3376820", Offset = "0x3375820", VA = "0x183376820")]
public new ConfiguredTaskAwaitable<TResult> ConfigureAwait(bool continueOnCapturedContext)
{
return default(ConfiguredTaskAwaitable<TResult>);
}
/// <summary>Creates a continuation that executes asynchronously when the target task completes.</summary>
/// <param name="continuationAction">An action to run when the antecedent <see cref="T:System.Threading.Tasks.Task`1" /> completes. When run, the delegate will be passed the completed task as an argument.</param>
/// <returns>A new continuation task.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task`1" /> has been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationAction" /> argument is <see langword="null" />.</exception>
// Token: 0x060020C5 RID: 8389 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020C5")]
[Address(RVA = "0x33C82E0", Offset = "0x33C72E0", VA = "0x1833C82E0")]
public Task ContinueWith(Action<Task<TResult>> continuationAction)
{
return null;
}
// Token: 0x060020C6 RID: 8390 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020C6")]
[Address(RVA = "0x33C6EE0", Offset = "0x33C5EE0", VA = "0x1833C6EE0")]
internal Task ContinueWith(Action<Task<TResult>> continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
/// <summary>Creates a continuation that executes according the condition specified in <paramref name="continuationOptions" />.</summary>
/// <param name="continuationFunction">A function to run according the condition specified in <paramref name="continuationOptions" />.
/// When run, the delegate will be passed as an argument this completed task.</param>
/// <param name="cancellationToken">The <see cref="T:System.Threading.CancellationToken" /> that will be assigned to the new task.</param>
/// <param name="continuationOptions">Options for when the continuation is scheduled and how it behaves. This includes criteria, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled" />, as well as execution options, such as <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> to associate with the continuation task and to use for its execution.</param>
/// <typeparam name="TNewResult">The type of the result produced by the continuation.</typeparam>
/// <returns>A new continuation <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Threading.Tasks.Task`1" /> has been disposed.
/// -or-
/// The <see cref="T:System.Threading.CancellationTokenSource" /> that created <paramref name="cancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="continuationFunction" /> argument is null.
/// -or-
/// The <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="continuationOptions" /> argument specifies an invalid value for <see cref="T:System.Threading.Tasks.TaskContinuationOptions" />.</exception>
// Token: 0x060020C7 RID: 8391 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020C7")]
[Address(RVA = "0x25FEFA0", Offset = "0x25FDFA0", VA = "0x1825FEFA0")]
public Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
return null;
}
// Token: 0x060020C8 RID: 8392 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020C8")]
[Address(RVA = "0x25FF1D0", Offset = "0x25FE1D0", VA = "0x1825FF1D0")]
internal Task<TNewResult> ContinueWith<TNewResult>(Func<Task<TResult>, TNewResult> continuationFunction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, ref StackCrawlMark stackMark)
{
return null;
}
// Token: 0x0400123D RID: 4669
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400123D")]
internal TResult m_result;
// Token: 0x0400123E RID: 4670
[Token(Token = "0x400123E")]
private static readonly TaskFactory<TResult> s_Factory;
// Token: 0x0400123F RID: 4671
[Token(Token = "0x400123F")]
internal static readonly Func<Task<Task>, Task<TResult>> TaskWhenAnyCast;
}
}
@@ -0,0 +1,46 @@
using System;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents an exception used to communicate task cancellation.</summary>
// Token: 0x0200039F RID: 927
[Token(Token = "0x200039F")]
[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: 0x060021C0 RID: 8640 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C0")]
[Address(RVA = "0xB46A20", Offset = "0xB45A20", VA = "0x180B46A20")]
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: 0x060021C1 RID: 8641 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C1")]
[Address(RVA = "0xB46A70", Offset = "0xB45A70", VA = "0x180B46A70")]
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: 0x060021C2 RID: 8642 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C2")]
[Address(RVA = "0x71ABC0", Offset = "0x719BC0", VA = "0x18071ABC0")]
protected TaskCanceledException(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x040012F1 RID: 4849
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40012F1")]
[NonSerialized]
private Task m_canceledTask;
}
}
@@ -0,0 +1,105 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents the producer side of a <see cref="T:System.Threading.Tasks.Task`1" /> unbound to a delegate, providing access to the consumer side through the <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> property.</summary>
/// <typeparam name="TResult">The type of the result value assocatied with this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</typeparam>
// Token: 0x020003A0 RID: 928
[Token(Token = "0x20003A0")]
public class TaskCompletionSource<TResult>
{
/// <summary>Creates a <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</summary>
// Token: 0x060021C3 RID: 8643 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C3")]
[Address(RVA = "0x29F85C0", Offset = "0x29F75C0", VA = "0x1829F85C0")]
public TaskCompletionSource()
{
}
/// <summary>Gets the <see cref="T:System.Threading.Tasks.Task`1" /> created by this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</summary>
/// <returns>Returns the <see cref="T:System.Threading.Tasks.Task`1" /> created by this <see cref="T:System.Threading.Tasks.TaskCompletionSource`1" />.</returns>
// Token: 0x170004BE RID: 1214
// (get) Token: 0x060021C4 RID: 8644 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004BE")]
public Task<TResult> Task
{
[Token(Token = "0x60021C4")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return null;
}
}
// Token: 0x060021C5 RID: 8645 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C5")]
[Address(RVA = "0x2F03640", Offset = "0x2F02640", VA = "0x182F03640")]
private void SpinUntilCompleted()
{
}
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state and binds it to a specified exception.</summary>
/// <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <returns>True if the operation was successful; otherwise, false.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> was disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="exception" /> argument is null.</exception>
// Token: 0x060021C6 RID: 8646 RVA: 0x000162C0 File Offset: 0x000144C0
[Token(Token = "0x60021C6")]
[Address(RVA = "0x2F03AD0", Offset = "0x2F02AD0", VA = "0x182F03AD0")]
public bool TrySetException(Exception exception)
{
return default(bool);
}
/// <summary>Transitions the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" /> state and binds it to a specified exception.</summary>
/// <param name="exception">The exception to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="P:System.Threading.Tasks.TaskCompletionSource`1.Task" /> was disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="exception" /> argument is null.</exception>
/// <exception cref="T:System.InvalidOperationException">The underlying <see cref="T:System.Threading.Tasks.Task`1" /> is already in one of the three final states: <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />, <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />, or <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />.</exception>
// Token: 0x060021C7 RID: 8647 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021C7")]
[Address(RVA = "0x2F03100", Offset = "0x2F02100", VA = "0x182F03100")]
public void SetException(Exception exception)
{
}
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" /> state.</summary>
/// <param name="result">The result value to bind to this <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <returns>True if the operation was successful; otherwise, false.</returns>
// Token: 0x060021C8 RID: 8648 RVA: 0x000162D8 File Offset: 0x000144D8
[Token(Token = "0x60021C8")]
[Address(RVA = "0x2F03D10", Offset = "0x2F02D10", VA = "0x182F03D10")]
public bool TrySetResult(TResult result)
{
return default(bool);
}
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> state.</summary>
/// <returns>True if the operation was successful; false if the operation was unsuccessful or the object has already been disposed.</returns>
// Token: 0x060021C9 RID: 8649 RVA: 0x000162F0 File Offset: 0x000144F0
[Token(Token = "0x60021C9")]
[Address(RVA = "0x2F036A0", Offset = "0x2F026A0", VA = "0x182F036A0")]
public bool TrySetCanceled()
{
return default(bool);
}
/// <summary>Attempts to transition the underlying <see cref="T:System.Threading.Tasks.Task`1" /> into the <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" /> state and enables a cancellation token to be stored in the canceled task.</summary>
/// <param name="cancellationToken">A cancellation token.</param>
/// <returns>
/// <see langword="true" /> if the operation is successful; otherwise, <see langword="false" />.</returns>
// Token: 0x060021CA RID: 8650 RVA: 0x00016308 File Offset: 0x00014508
[Token(Token = "0x60021CA")]
[Address(RVA = "0x2F036D0", Offset = "0x2F026D0", VA = "0x182F036D0")]
public bool TrySetCanceled(CancellationToken cancellationToken)
{
return default(bool);
}
// Token: 0x040012F2 RID: 4850
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x40012F2")]
private readonly Task<TResult> m_task;
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A5 RID: 933
[Token(Token = "0x20003A5")]
internal abstract class TaskContinuation
{
// Token: 0x060021D3 RID: 8659
[Token(Token = "0x60021D3")]
[Address(Slot = "4")]
internal abstract void Run(Task completedTask, bool bCanInlineContinuationTask);
// Token: 0x060021D4 RID: 8660 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D4")]
[Address(RVA = "0xB46B20", Offset = "0xB45B20", VA = "0x180B46B20")]
protected static void InlineIfPossibleOrElseQueue(Task task, bool needsProtection)
{
}
// Token: 0x060021D5 RID: 8661 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021D5")]
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
protected TaskContinuation()
{
}
}
}
@@ -0,0 +1,79 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Specifies the behavior for a task that is created by using the <see cref="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task},System.Threading.CancellationToken,System.Threading.Tasks.TaskContinuationOptions,System.Threading.Tasks.TaskScheduler)" /> or <see cref="M:System.Threading.Tasks.Task`1.ContinueWith(System.Action{System.Threading.Tasks.Task{`0}},System.Threading.Tasks.TaskContinuationOptions)" /> method.</summary>
// Token: 0x0200039B RID: 923
[Token(Token = "0x200039B")]
[Flags]
[Serializable]
public enum TaskContinuationOptions
{
/// <summary>When no continuation options are specified, specifies that default behavior should be used when executing a continuation. The continuation runs asynchronously when the antecedent task completes, regardless of the antecedent's final <see cref="P:System.Threading.Tasks.Task.Status" /> property value. It the continuation is a child task, it is created as a detached nested task.</summary>
// Token: 0x040012E0 RID: 4832
[Token(Token = "0x40012E0")]
None = 0,
/// <summary>A hint to a <see cref="T:System.Threading.Tasks.TaskScheduler" /> to schedule task in the order in which they were scheduled, so that tasks scheduled sooner are more likely to run sooner, and tasks scheduled later are more likely to run later.</summary>
// Token: 0x040012E1 RID: 4833
[Token(Token = "0x40012E1")]
PreferFairness = 1,
/// <summary>Specifies that a continuation will be a long-running, course-grained operation. It provides a hint to the <see cref="T:System.Threading.Tasks.TaskScheduler" /> that oversubscription may be warranted.</summary>
// Token: 0x040012E2 RID: 4834
[Token(Token = "0x40012E2")]
LongRunning = 2,
/// <summary>Specifies that the continuation, if it is a child task, is attached to a parent in the task hierarchy. The continuation can be a child task only if its antecedent is also a child task. By default, a child task (that is, an inner task created by an outer task) executes independently of its parent. You can use the <see cref="F:System.Threading.Tasks.TaskContinuationOptions.AttachedToParent" /> option so that the parent and child tasks are synchronized.
/// Note that if a parent task is configured with the <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" /> option, the <see cref="F:System.Threading.Tasks.TaskCreationOptions.AttachedToParent" /> option in the child task has no effect, and the child task will execute as a detached child task.
/// For more information, see Attached and Detached Child Tasks.</summary>
// Token: 0x040012E3 RID: 4835
[Token(Token = "0x40012E3")]
AttachedToParent = 4,
/// <summary>Specifies that any child task (that is, any nested inner task created by this continuation) that is created with the <see cref="F:System.Threading.Tasks.TaskCreationOptions.AttachedToParent" /> option and attempts to execute as an attached child task will not be able to attach to the parent task and will execute instead as a detached child task. For more information, see Attached and Detached Child Tasks.</summary>
// Token: 0x040012E4 RID: 4836
[Token(Token = "0x40012E4")]
DenyChildAttach = 8,
/// <summary>Specifies that tasks created by the continuation by calling methods such as <see cref="M:System.Threading.Tasks.Task.Run(System.Action)" /> or <see cref="M:System.Threading.Tasks.Task.ContinueWith(System.Action{System.Threading.Tasks.Task})" /> see the default scheduler (<see cref="P:System.Threading.Tasks.TaskScheduler.Default" />) rather than the scheduler on which this continuation is running as the current scheduler.</summary>
// Token: 0x040012E5 RID: 4837
[Token(Token = "0x40012E5")]
HideScheduler = 16,
/// <summary>In the case of continuation cancellation, prevents completion of the continuation until the antecedent has completed.</summary>
// Token: 0x040012E6 RID: 4838
[Token(Token = "0x40012E6")]
LazyCancellation = 32,
/// <summary>Specifies that the continuation task should be run asynchronously. This option has precedence over <see cref="F:System.Threading.Tasks.TaskContinuationOptions.ExecuteSynchronously" />.</summary>
// Token: 0x040012E7 RID: 4839
[Token(Token = "0x40012E7")]
RunContinuationsAsynchronously = 64,
/// <summary>Specifies that the continuation task should not be scheduled if its antecedent ran to completion. An antecedent runs to completion if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />. This option is not valid for multi-task continuations.</summary>
// Token: 0x040012E8 RID: 4840
[Token(Token = "0x40012E8")]
NotOnRanToCompletion = 65536,
/// <summary>Specifies that the continuation task should not be scheduled if its antecedent threw an unhandled exception. An antecedent throws an unhandled exception if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />. This option is not valid for multi-task continuations.</summary>
// Token: 0x040012E9 RID: 4841
[Token(Token = "0x40012E9")]
NotOnFaulted = 131072,
/// <summary>Specifies that the continuation task should not be scheduled if its antecedent was canceled. An antecedent is canceled if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />. This option is not valid for multi-task continuations.</summary>
// Token: 0x040012EA RID: 4842
[Token(Token = "0x40012EA")]
NotOnCanceled = 262144,
/// <summary>Specifies that the continuation should be scheduled only if its antecedent ran to completion. An antecedent runs to completion if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.RanToCompletion" />. This option is not valid for multi-task continuations.</summary>
// Token: 0x040012EB RID: 4843
[Token(Token = "0x40012EB")]
OnlyOnRanToCompletion = 393216,
/// <summary>Specifies that the continuation task should be scheduled only if its antecedent threw an unhandled exception. An antecedent throws an unhandled exception if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.Faulted" />.
/// The <see cref="F:System.Threading.Tasks.TaskContinuationOptions.OnlyOnFaulted" /> option guarantees that the <see cref="P:System.Threading.Tasks.Task.Exception" /> property in the antecedent is not <see langword="null" />. You can use that property to catch the exception and see which exception caused the task to fault. If you do not access the <see cref="P:System.Threading.Tasks.Task.Exception" /> property, the exception is unhandled. Also, if you attempt to access the <see cref="P:System.Threading.Tasks.Task`1.Result" /> property of a task that has been canceled or has faulted, a new exception is thrown.
/// This option is not valid for multi-task continuations.</summary>
// Token: 0x040012EC RID: 4844
[Token(Token = "0x40012EC")]
OnlyOnFaulted = 327680,
/// <summary>Specifies that the continuation should be scheduled only if its antecedent was canceled. An antecedent is canceled if its <see cref="P:System.Threading.Tasks.Task.Status" /> property upon completion is <see cref="F:System.Threading.Tasks.TaskStatus.Canceled" />. This option is not valid for multi-task continuations.</summary>
// Token: 0x040012ED RID: 4845
[Token(Token = "0x40012ED")]
OnlyOnCanceled = 196608,
/// <summary>Specifies that the continuation task should be executed synchronously. With this option specified, the continuation runs on the same thread that causes the antecedent task to transition into its final state. If the antecedent is already complete when the continuation is created, the continuation will run on the thread that creates the continuation. If the antecedent's <see cref="T:System.Threading.CancellationTokenSource" /> is disposed in a <see langword="finally" /> block (<see langword="Finally" /> in Visual Basic), a continuation with this option will run in that <see langword="finally" /> block. Only very short-running continuations should be executed synchronously.
/// Because the task executes synchronously, there is no need to call a method such as <see cref="M:System.Threading.Tasks.Task.Wait" /> to ensure that the calling thread waits for the task to complete.</summary>
// Token: 0x040012EE RID: 4846
[Token(Token = "0x40012EE")]
ExecuteSynchronously = 524288
}
}
@@ -0,0 +1,45 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Specifies flags that control optional behavior for the creation and execution of tasks.</summary>
// Token: 0x02000399 RID: 921
[Token(Token = "0x2000399")]
[Flags]
[Serializable]
public enum TaskCreationOptions
{
/// <summary>Specifies that the default behavior should be used.</summary>
// Token: 0x040012CE RID: 4814
[Token(Token = "0x40012CE")]
None = 0,
/// <summary>A hint to a <see cref="T:System.Threading.Tasks.TaskScheduler" /> to schedule a task in as fair a manner as possible, meaning that tasks scheduled sooner will be more likely to be run sooner, and tasks scheduled later will be more likely to be run later.</summary>
// Token: 0x040012CF RID: 4815
[Token(Token = "0x40012CF")]
PreferFairness = 1,
/// <summary>Specifies that a task will be a long-running, coarse-grained operation involving fewer, larger components than fine-grained systems. It provides a hint to the <see cref="T:System.Threading.Tasks.TaskScheduler" /> that oversubscription may be warranted. Oversubscription lets you create more threads than the available number of hardware threads. It also provides a hint to the task scheduler that an additional thread might be required for the task so that it does not block the forward progress of other threads or work items on the local thread-pool queue.</summary>
// Token: 0x040012D0 RID: 4816
[Token(Token = "0x40012D0")]
LongRunning = 2,
/// <summary>Specifies that a task is attached to a parent in the task hierarchy. By default, a child task (that is, an inner task created by an outer task) executes independently of its parent. You can use the <see cref="F:System.Threading.Tasks.TaskContinuationOptions.AttachedToParent" /> option so that the parent and child tasks are synchronized.
/// Note that if a parent task is configured with the <see cref="F:System.Threading.Tasks.TaskCreationOptions.DenyChildAttach" /> option, the <see cref="F:System.Threading.Tasks.TaskCreationOptions.AttachedToParent" /> option in the child task has no effect, and the child task will execute as a detached child task.
/// For more information, see Attached and Detached Child Tasks.</summary>
// Token: 0x040012D1 RID: 4817
[Token(Token = "0x40012D1")]
AttachedToParent = 4,
/// <summary>Specifies that any child task that attempts to execute as an attached child task (that is, it is created with the <see cref="F:System.Threading.Tasks.TaskCreationOptions.AttachedToParent" /> option) will not be able to attach to the parent task and will execute instead as a detached child task. For more information, see Attached and Detached Child Tasks.</summary>
// Token: 0x040012D2 RID: 4818
[Token(Token = "0x40012D2")]
DenyChildAttach = 8,
/// <summary>Prevents the ambient scheduler from being seen as the current scheduler in the created task. This means that operations like StartNew or ContinueWith that are performed in the created task will see <see cref="P:System.Threading.Tasks.TaskScheduler.Default" /> as the current scheduler.</summary>
// Token: 0x040012D3 RID: 4819
[Token(Token = "0x40012D3")]
HideScheduler = 16,
/// <summary>Forces continuations added to the current task to be executed asynchronously.
/// Note that the <see cref="F:System.Threading.Tasks.TaskCreationOptions.RunContinuationsAsynchronously" /> member is available in the <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> enumeration starting with the .NET Framework 4.6.</summary>
// Token: 0x040012D4 RID: 4820
[Token(Token = "0x40012D4")]
RunContinuationsAsynchronously = 64
}
}
@@ -0,0 +1,153 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.ExceptionServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003AD RID: 941
[Token(Token = "0x20003AD")]
internal class TaskExceptionHolder
{
// Token: 0x060021F6 RID: 8694 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F6")]
[Address(RVA = "0xB47D10", Offset = "0xB46D10", VA = "0x180B47D10")]
internal TaskExceptionHolder(Task task)
{
}
// Token: 0x060021F7 RID: 8695 RVA: 0x00016338 File Offset: 0x00014538
[Token(Token = "0x60021F7")]
[Address(RVA = "0xB47CC0", Offset = "0xB46CC0", VA = "0x180B47CC0")]
private static bool ShouldFailFastOnUnobservedException()
{
return default(bool);
}
// Token: 0x060021F8 RID: 8696 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F8")]
[Address(RVA = "0xB473E0", Offset = "0xB463E0", VA = "0x180B473E0")]
private static void EnsureADUnloadCallbackRegistered()
{
}
// Token: 0x060021F9 RID: 8697 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021F9")]
[Address(RVA = "0xB471B0", Offset = "0xB461B0", VA = "0x180B471B0")]
private static void AppDomainUnloadCallback(object sender, EventArgs e)
{
}
// Token: 0x060021FA RID: 8698 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FA")]
[Address(RVA = "0xB47510", Offset = "0xB46510", VA = "0x180B47510", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x170004C0 RID: 1216
// (get) Token: 0x060021FB RID: 8699 RVA: 0x00016350 File Offset: 0x00014550
[Token(Token = "0x170004C0")]
internal bool ContainsFaultList
{
[Token(Token = "0x60021FB")]
[Address(RVA = "0xB47EA0", Offset = "0xB46EA0", VA = "0x180B47EA0")]
get
{
return default(bool);
}
}
// Token: 0x060021FC RID: 8700 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FC")]
[Address(RVA = "0xB470A0", Offset = "0xB460A0", VA = "0x180B470A0")]
internal void Add(object exceptionObject, bool representsCancellation)
{
}
// Token: 0x060021FD RID: 8701 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FD")]
[Address(RVA = "0xB47BD0", Offset = "0xB46BD0", VA = "0x180B47BD0")]
private void SetCancellationException(object exceptionObject)
{
}
// Token: 0x060021FE RID: 8702 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FE")]
[Address(RVA = "0xB46C90", Offset = "0xB45C90", VA = "0x180B46C90")]
private void AddFaultException(object exceptionObject)
{
}
// Token: 0x060021FF RID: 8703 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021FF")]
[Address(RVA = "0xB47B50", Offset = "0xB46B50", VA = "0x180B47B50")]
private void MarkAsUnhandled()
{
}
// Token: 0x06002200 RID: 8704 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002200")]
[Address(RVA = "0xB47AC0", Offset = "0xB46AC0", VA = "0x180B47AC0")]
internal void MarkAsHandled(bool calledFromFinalizer)
{
}
// Token: 0x06002201 RID: 8705 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002201")]
[Address(RVA = "0xB47210", Offset = "0xB46210", VA = "0x180B47210")]
internal AggregateException CreateExceptionObject(bool calledFromFinalizer, Exception includeThisException)
{
return null;
}
// Token: 0x06002202 RID: 8706 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002202")]
[Address(RVA = "0xB479F0", Offset = "0xB469F0", VA = "0x180B479F0")]
internal ReadOnlyCollection<ExceptionDispatchInfo> GetExceptionDispatchInfos()
{
return null;
}
// Token: 0x06002203 RID: 8707 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002203")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
internal ExceptionDispatchInfo GetCancellationExceptionDispatchInfo()
{
return null;
}
// Token: 0x04001306 RID: 4870
[Token(Token = "0x4001306")]
private static readonly bool s_failFastOnUnobservedException;
// Token: 0x04001307 RID: 4871
[Token(Token = "0x4001307")]
private static bool s_domainUnloadStarted;
// Token: 0x04001308 RID: 4872
[Token(Token = "0x4001308")]
private static EventHandler s_adUnloadEventHandler;
// Token: 0x04001309 RID: 4873
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001309")]
private readonly Task m_task;
// Token: 0x0400130A RID: 4874
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400130A")]
private List<ExceptionDispatchInfo> m_faultExceptions;
// Token: 0x0400130B RID: 4875
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400130B")]
private ExceptionDispatchInfo m_cancellationException;
// Token: 0x0400130C RID: 4876
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400130C")]
private bool m_isHandled;
}
}
@@ -0,0 +1,237 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides support for creating and scheduling <see cref="T:System.Threading.Tasks.Task" /> objects.</summary>
// Token: 0x020003AE RID: 942
[Token(Token = "0x20003AE")]
public class TaskFactory
{
// Token: 0x06002205 RID: 8709 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002205")]
[Address(RVA = "0xB48350", Offset = "0xB47350", VA = "0x180B48350")]
private TaskScheduler GetDefaultScheduler(Task currTask)
{
return null;
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory" /> instance with the default configuration.</summary>
// Token: 0x06002206 RID: 8710 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002206")]
[Address(RVA = "0xB48780", Offset = "0xB47780", VA = "0x180B48780")]
public TaskFactory()
{
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory" /> instance with the specified configuration.</summary>
/// <param name="cancellationToken">The default <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory" /> unless another CancellationToken is explicitly specified while calling the factory methods.</param>
/// <param name="creationOptions">The default <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> to use when creating tasks with this TaskFactory.</param>
/// <param name="continuationOptions">The default <see cref="T:System.Threading.Tasks.TaskContinuationOptions" /> to use when creating continuation tasks with this TaskFactory.</param>
/// <param name="scheduler">The default <see cref="T:System.Threading.Tasks.TaskScheduler" /> to use to schedule any Tasks created with this TaskFactory. A null value indicates that TaskScheduler.Current should be used.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="creationOptions" /> argument specifies an invalid <see cref="T:System.Threading.Tasks.TaskCreationOptions" /> value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" />.
/// -or-
/// The <paramref name="continuationOptions" /> argument specifies an invalid value.</exception>
// Token: 0x06002207 RID: 8711 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002207")]
[Address(RVA = "0xB485E0", Offset = "0xB475E0", VA = "0x180B485E0")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x06002208 RID: 8712 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002208")]
[Address(RVA = "0xB47EC0", Offset = "0xB46EC0", VA = "0x180B47EC0")]
internal static void CheckCreationOptions(TaskCreationOptions creationOptions)
{
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <param name="action">The action delegate to execute asynchronously.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x06002209 RID: 8713 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002209")]
[Address(RVA = "0xB48530", Offset = "0xB47530", VA = "0x180B48530")]
public Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task" />.</summary>
/// <param name="action">The action delegate to execute asynchronously.</param>
/// <param name="state">An object containing data to be used by the <paramref name="action" /> delegate.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new task.</param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" /></param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="action" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x0600220A RID: 8714 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600220A")]
[Address(RVA = "0xB48470", Offset = "0xB47470", VA = "0x180B48470")]
public Task StartNew(Action<object> action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <param name="function">A function delegate that returns the future result to be available through the <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="state">An object containing data to be used by the <paramref name="function" /> delegate.</param>
/// <typeparam name="TResult">The type of the result available through the <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function" /> argument is null.</exception>
// Token: 0x0600220B RID: 8715 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600220B")]
[Address(RVA = "0x25FE7E0", Offset = "0x25FD7E0", VA = "0x1825FE7E0")]
public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state)
{
return null;
}
/// <summary>Creates and starts a <see cref="T:System.Threading.Tasks.Task`1" />.</summary>
/// <param name="function">A function delegate that returns the future result to be available through the <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="state">An object containing data to be used by the <paramref name="function" /> delegate.</param>
/// <param name="cancellationToken">The <see cref="P:System.Threading.Tasks.TaskFactory.CancellationToken" /> that will be assigned to the new task.</param>
/// <param name="creationOptions">A TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <param name="scheduler">The <see cref="T:System.Threading.Tasks.TaskScheduler" /> that is used to schedule the created <see cref="T:System.Threading.Tasks.Task`1" />.</param>
/// <typeparam name="TResult">The type of the result available through the <see cref="T:System.Threading.Tasks.Task`1" />.</typeparam>
/// <returns>The started <see cref="T:System.Threading.Tasks.Task`1" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The provided <see cref="T:System.Threading.CancellationToken" /> has already been disposed.</exception>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="function" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="scheduler" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x0600220C RID: 8716 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600220C")]
[Address(RVA = "0x25FECC0", Offset = "0x25FDCC0", VA = "0x1825FECC0")]
public Task<TResult> StartNew<TResult>(Func<object, TResult> function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task" /> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="arg1">The first argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="arg2">The second argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <typeparam name="TArg1">The type of the second argument passed to <paramref name="beginMethod" /> delegate.</typeparam>
/// <typeparam name="TArg2">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="beginMethod" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="endMethod" /> argument is null.</exception>
// Token: 0x0600220D RID: 8717 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600220D")]
[Address(RVA = "0x25FE760", Offset = "0x25FD760", VA = "0x1825FE760")]
public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state)
{
return null;
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.Task" /> that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="arg1">The first argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="arg2">The second argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <param name="creationOptions">The TaskCreationOptions value that controls the behavior of the created <see cref="T:System.Threading.Tasks.Task" />.</param>
/// <typeparam name="TArg1">The type of the second argument passed to <paramref name="beginMethod" /> delegate.</typeparam>
/// <typeparam name="TArg2">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created <see cref="T:System.Threading.Tasks.Task" /> that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The exception that is thrown when the <paramref name="beginMethod" /> argument is null.
/// -or-
/// The exception that is thrown when the <paramref name="endMethod" /> argument is null.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the <paramref name="creationOptions" /> argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for <see cref="M:System.Threading.Tasks.TaskFactory.FromAsync(System.Func{System.AsyncCallback,System.Object,System.IAsyncResult},System.Action{System.IAsyncResult},System.Object,System.Threading.Tasks.TaskCreationOptions)" /></exception>
// Token: 0x0600220E RID: 8718 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600220E")]
[Address(RVA = "0x25FE740", Offset = "0x25FD740", VA = "0x1825FE740")]
public Task FromAsync<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x0600220F RID: 8719 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600220F")]
[Address(RVA = "0xB47F30", Offset = "0xB46F30", VA = "0x180B47F30")]
internal static void CheckFromAsyncOptions(TaskCreationOptions creationOptions, bool hasBeginMethod)
{
}
// Token: 0x06002210 RID: 8720 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002210")]
[Address(RVA = "0xB48150", Offset = "0xB47150", VA = "0x180B48150")]
internal static Task<Task> CommonCWAnyLogic(IList<Task> tasks)
{
return null;
}
// Token: 0x06002211 RID: 8721 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002211")]
[Address(RVA = "0xB48040", Offset = "0xB47040", VA = "0x180B48040")]
internal static void CheckMultiTaskContinuationOptions(TaskContinuationOptions continuationOptions)
{
}
// Token: 0x0400130D RID: 4877
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400130D")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x0400130E RID: 4878
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400130E")]
private TaskScheduler m_defaultScheduler;
// Token: 0x0400130F RID: 4879
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400130F")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001310 RID: 4880
[FieldOffset(Offset = "0x24")]
[Token(Token = "0x4001310")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x020003AF RID: 943
[Token(Token = "0x20003AF")]
internal sealed class CompleteOnInvokePromise : Task<Task>, ITaskCompletionAction
{
// Token: 0x06002212 RID: 8722 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002212")]
[Address(RVA = "0xB3F3C0", Offset = "0xB3E3C0", VA = "0x180B3F3C0")]
public CompleteOnInvokePromise(IList<Task> tasks)
{
}
// Token: 0x06002213 RID: 8723 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002213")]
[Address(RVA = "0xB3F1F0", Offset = "0xB3E1F0", VA = "0x180B3F1F0", Slot = "22")]
public void Invoke(Task completingTask)
{
}
// Token: 0x04001311 RID: 4881
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001311")]
private IList<Task> _tasks;
// Token: 0x04001312 RID: 4882
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4001312")]
private int m_firstTaskAlreadyCompleted;
}
}
}
@@ -0,0 +1,167 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides support for creating and scheduling <see cref="T:System.Threading.Tasks.Task`1" /> objects.</summary>
/// <typeparam name="TResult">The return value of the <see cref="T:System.Threading.Tasks.Task`1" /> objects that the methods of this class create.</typeparam>
// Token: 0x02000378 RID: 888
[Token(Token = "0x2000378")]
public class TaskFactory<TResult>
{
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1" /> instance with the default configuration.</summary>
// Token: 0x060020CD RID: 8397 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CD")]
[Address(RVA = "0x2F090A0", Offset = "0x2F080A0", VA = "0x182F090A0")]
public TaskFactory()
{
}
/// <summary>Initializes a <see cref="T:System.Threading.Tasks.TaskFactory`1" /> instance with the specified configuration.</summary>
/// <param name="cancellationToken">The default cancellation token that will be assigned to tasks created by this <see cref="T:System.Threading.Tasks.TaskFactory" /> unless another cancellation token is explicitly specified when calling the factory methods.</param>
/// <param name="creationOptions">The default options to use when creating tasks with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />.</param>
/// <param name="continuationOptions">The default options to use when creating continuation tasks with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />.</param>
/// <param name="scheduler">The default scheduler to use to schedule any tasks created with this <see cref="T:System.Threading.Tasks.TaskFactory`1" />. A null value indicates that <see cref="P:System.Threading.Tasks.TaskScheduler.Current" /> should be used.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="creationOptions" /> or <paramref name="continuationOptions" /> specifies an invalid value.</exception>
// Token: 0x060020CE RID: 8398 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CE")]
[Address(RVA = "0x2F090E0", Offset = "0x2F080E0", VA = "0x182F090E0")]
public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
{
}
// Token: 0x060020CF RID: 8399 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020CF")]
[Address(RVA = "0x2F04C70", Offset = "0x2F03C70", VA = "0x182F04C70")]
private static void FromAsyncCoreLogic(IAsyncResult iar, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, Task<TResult> promise, bool requiresSynchronization)
{
}
/// <summary>Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <returns>The created task that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="beginMethod" /> argument is <see langword="null" />.
/// -or-
/// The <paramref name="endMethod" /> argument is <see langword="null" />.</exception>
// Token: 0x060020D0 RID: 8400 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D0")]
[Address(RVA = "0x2F09050", Offset = "0x2F08050", VA = "0x182F09050")]
public Task<TResult> FromAsync(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, object state)
{
return null;
}
// Token: 0x060020D1 RID: 8401 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D1")]
[Address(RVA = "0x2F07C10", Offset = "0x2F06C10", VA = "0x182F07C10")]
internal static Task<TResult> FromAsyncImpl(Func<AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, object state, TaskCreationOptions creationOptions)
{
return null;
}
/// <summary>Creates a task that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern.</summary>
/// <param name="beginMethod">The delegate that begins the asynchronous operation.</param>
/// <param name="endMethod">The delegate that ends the asynchronous operation.</param>
/// <param name="arg1">The first argument passed to the <paramref name="beginMethod" /> delegate.</param>
/// <param name="state">An object containing data to be used by the <paramref name="beginMethod" /> delegate.</param>
/// <typeparam name="TArg1">The type of the first argument passed to the <paramref name="beginMethod" /> delegate.</typeparam>
/// <returns>The created task that represents the asynchronous operation.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="beginMethod" /> argument is <see langword="null" />.
/// -or-
/// The <paramref name="endMethod" /> argument is <see langword="null" />.</exception>
// Token: 0x060020D2 RID: 8402 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D2")]
[Address(RVA = "0x25FE6F0", Offset = "0x25FD6F0", VA = "0x1825FE6F0")]
public Task<TResult> FromAsync<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endMethod, TArg1 arg1, object state)
{
return null;
}
// Token: 0x060020D3 RID: 8403 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D3")]
[Address(RVA = "0x25FDC00", Offset = "0x25FCC00", VA = "0x1825FDC00")]
internal static Task<TResult> FromAsyncImpl<TArg1>(Func<TArg1, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x060020D4 RID: 8404 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D4")]
[Address(RVA = "0x25FD610", Offset = "0x25FC610", VA = "0x1825FD610")]
internal static Task<TResult> FromAsyncImpl<TArg1, TArg2>(Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod, Func<IAsyncResult, TResult> endFunction, Action<IAsyncResult> endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
{
return null;
}
// Token: 0x060020D5 RID: 8405 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60020D5")]
[Address(RVA = "0x25FE1E0", Offset = "0x25FD1E0", VA = "0x1825FE1E0")]
internal static Task<TResult> FromAsyncTrim<TInstance, TArgs>(TInstance thisRef, TArgs args, Func<TInstance, TArgs, AsyncCallback, object, IAsyncResult> beginMethod, Func<TInstance, IAsyncResult, TResult> endMethod) where TInstance : class
{
return null;
}
// Token: 0x04001241 RID: 4673
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001241")]
private CancellationToken m_defaultCancellationToken;
// Token: 0x04001242 RID: 4674
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001242")]
private TaskScheduler m_defaultScheduler;
// Token: 0x04001243 RID: 4675
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001243")]
private TaskCreationOptions m_defaultCreationOptions;
// Token: 0x04001244 RID: 4676
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001244")]
private TaskContinuationOptions m_defaultContinuationOptions;
// Token: 0x02000379 RID: 889
[Token(Token = "0x2000379")]
private sealed class FromAsyncTrimPromise<TInstance> : Task<TResult> where TInstance : class
{
// Token: 0x060020D6 RID: 8406 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D6")]
[Address(RVA = "0x2EFE750", Offset = "0x2EFD750", VA = "0x182EFE750")]
internal FromAsyncTrimPromise(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod)
{
}
// Token: 0x060020D7 RID: 8407 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D7")]
[Address(RVA = "0x2EFDE90", Offset = "0x2EFCE90", VA = "0x182EFDE90")]
internal static void CompleteFromAsyncResult(IAsyncResult asyncResult)
{
}
// Token: 0x060020D8 RID: 8408 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60020D8")]
[Address(RVA = "0x2EFE230", Offset = "0x2EFD230", VA = "0x182EFE230")]
internal void Complete(TInstance thisRef, Func<TInstance, IAsyncResult, TResult> endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
{
}
// Token: 0x04001245 RID: 4677
[Token(Token = "0x4001245")]
internal static readonly AsyncCallback s_completeFromAsyncResult;
// Token: 0x04001246 RID: 4678
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001246")]
private TInstance m_thisRef;
// Token: 0x04001247 RID: 4679
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4001247")]
private Func<TInstance, IAsyncResult, TResult> m_endMethod;
}
}
}
@@ -0,0 +1,230 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents an object that handles the low-level work of queuing tasks onto threads.</summary>
// Token: 0x020003B0 RID: 944
[Token(Token = "0x20003B0")]
[DebuggerTypeProxy(typeof(TaskScheduler.SystemThreadingTasks_TaskSchedulerDebugView))]
[DebuggerDisplay("Id={Id}")]
public abstract class TaskScheduler
{
/// <summary>Queues a <see cref="T:System.Threading.Tasks.Task" /> to the scheduler.</summary>
/// <param name="task">The <see cref="T:System.Threading.Tasks.Task" /> to be queued.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="task" /> argument is null.</exception>
// Token: 0x06002214 RID: 8724
[Token(Token = "0x6002214")]
[Address(Slot = "4")]
protected internal abstract void QueueTask(Task task);
/// <summary>Determines whether the provided <see cref="T:System.Threading.Tasks.Task" /> can be executed synchronously in this call, and if it can, executes it.</summary>
/// <param name="task">The <see cref="T:System.Threading.Tasks.Task" /> to be executed.</param>
/// <param name="taskWasPreviouslyQueued">A Boolean denoting whether or not task has previously been queued. If this parameter is True, then the task may have been previously queued (scheduled); if False, then the task is known not to have been queued, and this call is being made in order to execute the task inline without queuing it.</param>
/// <returns>A Boolean value indicating whether the task was executed inline.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="task" /> argument is null.</exception>
/// <exception cref="T:System.InvalidOperationException">The <paramref name="task" /> was already executed.</exception>
// Token: 0x06002215 RID: 8725
[Token(Token = "0x6002215")]
[Address(Slot = "5")]
protected abstract bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued);
/// <summary>Indicates the maximum concurrency level this <see cref="T:System.Threading.Tasks.TaskScheduler" /> is able to support.</summary>
/// <returns>Returns an integer that represents the maximum concurrency level. The default scheduler returns <see cref="F:System.Int32.MaxValue" />.</returns>
// Token: 0x170004C1 RID: 1217
// (get) Token: 0x06002216 RID: 8726 RVA: 0x00016368 File Offset: 0x00014568
[Token(Token = "0x170004C1")]
public virtual int MaximumConcurrencyLevel
{
[Token(Token = "0x6002216")]
[Address(RVA = "0xB49970", Offset = "0xB48970", VA = "0x180B49970", Slot = "6")]
get
{
return 0;
}
}
// Token: 0x06002217 RID: 8727 RVA: 0x00016380 File Offset: 0x00014580
[Token(Token = "0x6002217")]
[Address(RVA = "0xB49150", Offset = "0xB48150", VA = "0x180B49150")]
internal bool TryRunInline(Task task, bool taskWasPreviouslyQueued)
{
return default(bool);
}
/// <summary>Attempts to dequeue a <see cref="T:System.Threading.Tasks.Task" /> that was previously queued to this scheduler.</summary>
/// <param name="task">The <see cref="T:System.Threading.Tasks.Task" /> to be dequeued.</param>
/// <returns>A Boolean denoting whether the <paramref name="task" /> argument was successfully dequeued.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="task" /> argument is null.</exception>
// Token: 0x06002218 RID: 8728 RVA: 0x00016398 File Offset: 0x00014598
[Token(Token = "0x6002218")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "7")]
protected internal virtual bool TryDequeue(Task task)
{
return default(bool);
}
// Token: 0x06002219 RID: 8729 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002219")]
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "8")]
internal virtual void NotifyWorkItemProgress()
{
}
// Token: 0x170004C2 RID: 1218
// (get) Token: 0x0600221A RID: 8730 RVA: 0x000163B0 File Offset: 0x000145B0
[Token(Token = "0x170004C2")]
internal virtual bool RequiresAtomicStartTransition
{
[Token(Token = "0x600221A")]
[Address(RVA = "0x4246A0", Offset = "0x4236A0", VA = "0x1804246A0", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x0600221B RID: 8731 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600221B")]
[Address(RVA = "0xB48F50", Offset = "0xB47F50", VA = "0x180B48F50")]
internal void InternalQueueTask(Task task)
{
}
/// <summary>Initializes the <see cref="T:System.Threading.Tasks.TaskScheduler" />.</summary>
// Token: 0x0600221C RID: 8732 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600221C")]
[Address(RVA = "0xB49550", Offset = "0xB48550", VA = "0x180B49550")]
protected TaskScheduler()
{
}
// Token: 0x0600221D RID: 8733 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600221D")]
[Address(RVA = "0xB48D80", Offset = "0xB47D80", VA = "0x180B48D80")]
private void AddToActiveTaskSchedulers()
{
}
/// <summary>Gets the default <see cref="T:System.Threading.Tasks.TaskScheduler" /> instance that is provided by the .NET Framework.</summary>
/// <returns>Returns the default <see cref="T:System.Threading.Tasks.TaskScheduler" /> instance.</returns>
// Token: 0x170004C3 RID: 1219
// (get) Token: 0x0600221E RID: 8734 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C3")]
public static TaskScheduler Default
{
[Token(Token = "0x600221E")]
[Address(RVA = "0xB49760", Offset = "0xB48760", VA = "0x180B49760")]
get
{
return null;
}
}
/// <summary>Gets the <see cref="T:System.Threading.Tasks.TaskScheduler" /> associated with the currently executing task.</summary>
/// <returns>Returns the <see cref="T:System.Threading.Tasks.TaskScheduler" /> associated with the currently executing task.</returns>
// Token: 0x170004C4 RID: 1220
// (get) Token: 0x0600221F RID: 8735 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C4")]
public static TaskScheduler Current
{
[Token(Token = "0x600221F")]
[Address(RVA = "0xB49690", Offset = "0xB48690", VA = "0x180B49690")]
get
{
return null;
}
}
// Token: 0x170004C5 RID: 1221
// (get) Token: 0x06002220 RID: 8736 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C5")]
internal static TaskScheduler InternalCurrent
{
[Token(Token = "0x6002220")]
[Address(RVA = "0xB49870", Offset = "0xB48870", VA = "0x180B49870")]
get
{
return null;
}
}
/// <summary>Creates a <see cref="T:System.Threading.Tasks.TaskScheduler" /> associated with the current <see cref="T:System.Threading.SynchronizationContext" />.</summary>
/// <returns>A <see cref="T:System.Threading.Tasks.TaskScheduler" /> associated with the current <see cref="T:System.Threading.SynchronizationContext" />, as determined by <see cref="P:System.Threading.SynchronizationContext.Current" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The current SynchronizationContext may not be used as a TaskScheduler.</exception>
// Token: 0x06002221 RID: 8737 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002221")]
[Address(RVA = "0xB48E70", Offset = "0xB47E70", VA = "0x180B48E70")]
public static TaskScheduler FromCurrentSynchronizationContext()
{
return null;
}
/// <summary>Gets the unique ID for this <see cref="T:System.Threading.Tasks.TaskScheduler" />.</summary>
/// <returns>Returns the unique ID for this <see cref="T:System.Threading.Tasks.TaskScheduler" />.</returns>
// Token: 0x170004C6 RID: 1222
// (get) Token: 0x06002222 RID: 8738 RVA: 0x000163C8 File Offset: 0x000145C8
[Token(Token = "0x170004C6")]
public int Id
{
[Token(Token = "0x6002222")]
[Address(RVA = "0xB497C0", Offset = "0xB487C0", VA = "0x180B497C0")]
get
{
return 0;
}
}
/// <summary>Attempts to execute the provided <see cref="T:System.Threading.Tasks.Task" /> on this scheduler.</summary>
/// <param name="task">A <see cref="T:System.Threading.Tasks.Task" /> object to be executed.</param>
/// <returns>A Boolean that is true if <paramref name="task" /> was successfully executed, false if it was not. A common reason for execution failure is that the task had previously been executed or is in the process of being executed by another thread.</returns>
/// <exception cref="T:System.InvalidOperationException">The <paramref name="task" /> is not associated with this scheduler.</exception>
// Token: 0x06002223 RID: 8739 RVA: 0x000163E0 File Offset: 0x000145E0
[Token(Token = "0x6002223")]
[Address(RVA = "0xB490B0", Offset = "0xB480B0", VA = "0x180B490B0")]
protected bool TryExecuteTask(Task task)
{
return default(bool);
}
// Token: 0x06002224 RID: 8740 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002224")]
[Address(RVA = "0xB48F80", Offset = "0xB47F80", VA = "0x180B48F80")]
internal static void PublishUnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs ueea)
{
}
// Token: 0x04001313 RID: 4883
[Token(Token = "0x4001313")]
private static ConditionalWeakTable<TaskScheduler, object> s_activeTaskSchedulers;
// Token: 0x04001314 RID: 4884
[Token(Token = "0x4001314")]
private static readonly TaskScheduler s_defaultTaskScheduler;
// Token: 0x04001315 RID: 4885
[Token(Token = "0x4001315")]
internal static int s_taskSchedulerIdCounter;
// Token: 0x04001316 RID: 4886
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4001316")]
private int m_taskSchedulerId;
// Token: 0x04001317 RID: 4887
[Token(Token = "0x4001317")]
private static EventHandler<UnobservedTaskExceptionEventArgs> _unobservedTaskException;
// Token: 0x04001318 RID: 4888
[Token(Token = "0x4001318")]
private static readonly object _unobservedTaskExceptionLockObject;
// Token: 0x020003B1 RID: 945
[Token(Token = "0x20003B1")]
internal sealed class SystemThreadingTasks_TaskSchedulerDebugView
{
}
}
}
@@ -0,0 +1,29 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003A9 RID: 937
[Token(Token = "0x20003A9")]
internal sealed class TaskSchedulerAwaitTaskContinuation : AwaitTaskContinuation
{
// Token: 0x060021E0 RID: 8672 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E0")]
[Address(RVA = "0xB461C0", Offset = "0xB451C0", VA = "0x180B461C0")]
internal TaskSchedulerAwaitTaskContinuation(TaskScheduler scheduler, Action action, bool flowExecutionContext, ref StackCrawlMark stackMark)
{
}
// Token: 0x060021E1 RID: 8673 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60021E1")]
[Address(RVA = "0xB48880", Offset = "0xB47880", VA = "0x180B48880", Slot = "4")]
internal sealed override void Run(Task ignored, bool canInlineContinuationTask)
{
}
// Token: 0x040012FE RID: 4862
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40012FE")]
private readonly TaskScheduler m_scheduler;
}
}
@@ -0,0 +1,40 @@
using System;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents an exception used to communicate an invalid operation by a <see cref="T:System.Threading.Tasks.TaskScheduler" />.</summary>
// Token: 0x020003B4 RID: 948
[Token(Token = "0x20003B4")]
[Serializable]
public class TaskSchedulerException : Exception
{
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException" /> class with a system-supplied message that describes the error.</summary>
// Token: 0x0600222D RID: 8749 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600222D")]
[Address(RVA = "0xB48C90", Offset = "0xB47C90", VA = "0x180B48C90")]
public TaskSchedulerException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException" /> class using the default error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="innerException">The exception that is the cause of the current exception.</param>
// Token: 0x0600222E RID: 8750 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600222E")]
[Address(RVA = "0xB48D00", Offset = "0xB47D00", VA = "0x180B48D00")]
public TaskSchedulerException(Exception innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.TaskSchedulerException" /> 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: 0x0600222F RID: 8751 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600222F")]
[Address(RVA = "0xB48C10", Offset = "0xB47C10", VA = "0x180B48C10")]
protected TaskSchedulerException(SerializationInfo info, StreamingContext context)
{
}
}
}
@@ -0,0 +1,44 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Represents the current stage in the lifecycle of a <see cref="T:System.Threading.Tasks.Task" />.</summary>
// Token: 0x0200038D RID: 909
[Token(Token = "0x200038D")]
public enum TaskStatus
{
/// <summary>The task has been initialized but has not yet been scheduled.</summary>
// Token: 0x04001282 RID: 4738
[Token(Token = "0x4001282")]
Created,
/// <summary>The task is waiting to be activated and scheduled internally by the .NET Framework infrastructure.</summary>
// Token: 0x04001283 RID: 4739
[Token(Token = "0x4001283")]
WaitingForActivation,
/// <summary>The task has been scheduled for execution but has not yet begun executing.</summary>
// Token: 0x04001284 RID: 4740
[Token(Token = "0x4001284")]
WaitingToRun,
/// <summary>The task is running but has not yet completed.</summary>
// Token: 0x04001285 RID: 4741
[Token(Token = "0x4001285")]
Running,
/// <summary>The task has finished executing and is implicitly waiting for attached child tasks to complete.</summary>
// Token: 0x04001286 RID: 4742
[Token(Token = "0x4001286")]
WaitingForChildrenToComplete,
/// <summary>The task completed execution successfully.</summary>
// Token: 0x04001287 RID: 4743
[Token(Token = "0x4001287")]
RanToCompletion,
/// <summary>The task acknowledged cancellation by throwing an OperationCanceledException with its own CancellationToken while the token was in signaled state, or the task's CancellationToken was already signaled before the task started executing. For more information, see Task Cancellation.</summary>
// Token: 0x04001288 RID: 4744
[Token(Token = "0x4001288")]
Canceled,
/// <summary>The task completed due to an unhandled exception.</summary>
// Token: 0x04001289 RID: 4745
[Token(Token = "0x4001289")]
Faulted
}
}
@@ -0,0 +1,119 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003B5 RID: 949
[Token(Token = "0x20003B5")]
internal static class TaskToApm
{
// Token: 0x06002230 RID: 8752 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002230")]
[Address(RVA = "0xB49980", Offset = "0xB48980", VA = "0x180B49980")]
public static IAsyncResult Begin(Task task, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x06002231 RID: 8753 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002231")]
[Address(RVA = "0xB49B60", Offset = "0xB48B60", VA = "0x180B49B60")]
public static void End(IAsyncResult asyncResult)
{
}
// Token: 0x06002232 RID: 8754 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002232")]
[Address(RVA = "0x1E62B40", Offset = "0x1E61B40", VA = "0x181E62B40")]
public static TResult End<TResult>(IAsyncResult asyncResult)
{
return null;
}
// Token: 0x06002233 RID: 8755 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002233")]
[Address(RVA = "0xB49C20", Offset = "0xB48C20", VA = "0x180B49C20")]
private static void InvokeCallbackWhenTaskCompletes(Task antecedent, AsyncCallback callback, IAsyncResult asyncResult)
{
}
// Token: 0x020003B6 RID: 950
[Token(Token = "0x20003B6")]
private sealed class TaskWrapperAsyncResult : IAsyncResult
{
// Token: 0x06002234 RID: 8756 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002234")]
[Address(RVA = "0x8ADF90", Offset = "0x8ACF90", VA = "0x1808ADF90")]
internal TaskWrapperAsyncResult(Task task, object state, bool completedSynchronously)
{
}
// Token: 0x170004C8 RID: 1224
// (get) Token: 0x06002235 RID: 8757 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004C8")]
object IAsyncResult.AsyncState
{
[Token(Token = "0x6002235")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "6")]
get
{
return null;
}
}
// Token: 0x170004C9 RID: 1225
// (get) Token: 0x06002236 RID: 8758 RVA: 0x00016428 File Offset: 0x00014628
[Token(Token = "0x170004C9")]
bool IAsyncResult.CompletedSynchronously
{
[Token(Token = "0x6002236")]
[Address(RVA = "0x4700C0", Offset = "0x46F0C0", VA = "0x1804700C0", Slot = "7")]
get
{
return default(bool);
}
}
// Token: 0x170004CA RID: 1226
// (get) Token: 0x06002237 RID: 8759 RVA: 0x00016440 File Offset: 0x00014640
[Token(Token = "0x170004CA")]
bool IAsyncResult.IsCompleted
{
[Token(Token = "0x6002237")]
[Address(RVA = "0xB49DD0", Offset = "0xB48DD0", VA = "0x180B49DD0", Slot = "4")]
get
{
return default(bool);
}
}
// Token: 0x170004CB RID: 1227
// (get) Token: 0x06002238 RID: 8760 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170004CB")]
WaitHandle IAsyncResult.AsyncWaitHandle
{
[Token(Token = "0x6002238")]
[Address(RVA = "0xB49D10", Offset = "0xB48D10", VA = "0x180B49D10", Slot = "5")]
get
{
return null;
}
}
// Token: 0x0400131D RID: 4893
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400131D")]
internal readonly Task Task;
// Token: 0x0400131E RID: 4894
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400131E")]
private readonly object m_state;
// Token: 0x0400131F RID: 4895
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400131F")]
private readonly bool m_completedSynchronously;
}
}
}
@@ -0,0 +1,71 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x020003B8 RID: 952
[Token(Token = "0x20003B8")]
internal sealed class ThreadPoolTaskScheduler : TaskScheduler
{
// Token: 0x0600223B RID: 8763 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223B")]
[Address(RVA = "0xB52A90", Offset = "0xB51A90", VA = "0x180B52A90")]
internal ThreadPoolTaskScheduler()
{
}
// Token: 0x0600223C RID: 8764 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223C")]
[Address(RVA = "0xB52620", Offset = "0xB51620", VA = "0x180B52620")]
private static void LongRunningThreadWork(object obj)
{
}
// Token: 0x0600223D RID: 8765 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600223D")]
[Address(RVA = "0xB52770", Offset = "0xB51770", VA = "0x180B52770", Slot = "4")]
protected internal override void QueueTask(Task task)
{
}
// Token: 0x0600223E RID: 8766 RVA: 0x00016458 File Offset: 0x00014658
[Token(Token = "0x600223E")]
[Address(RVA = "0xB52950", Offset = "0xB51950", VA = "0x180B52950", Slot = "5")]
protected override bool TryExecuteTaskInline(Task task, bool taskWasPreviouslyQueued)
{
return default(bool);
}
// Token: 0x0600223F RID: 8767 RVA: 0x00016470 File Offset: 0x00014670
[Token(Token = "0x600223F")]
[Address(RVA = "0xB52940", Offset = "0xB51940", VA = "0x180B52940", Slot = "7")]
protected internal override bool TryDequeue(Task task)
{
return default(bool);
}
// Token: 0x06002240 RID: 8768 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002240")]
[Address(RVA = "0xB526D0", Offset = "0xB516D0", VA = "0x180B526D0", Slot = "8")]
internal override void NotifyWorkItemProgress()
{
}
// Token: 0x170004CC RID: 1228
// (get) Token: 0x06002241 RID: 8769 RVA: 0x00016488 File Offset: 0x00014688
[Token(Token = "0x170004CC")]
internal override bool RequiresAtomicStartTransition
{
[Token(Token = "0x6002241")]
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "9")]
get
{
return default(bool);
}
}
// Token: 0x04001322 RID: 4898
[Token(Token = "0x4001322")]
private static readonly ParameterizedThreadStart s_longRunningThreadWork;
}
}
@@ -0,0 +1,30 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
/// <summary>Provides data for the event that is raised when a faulted <see cref="T:System.Threading.Tasks.Task" />'s exception goes unobserved.</summary>
// Token: 0x020003B3 RID: 947
[Token(Token = "0x20003B3")]
public class UnobservedTaskExceptionEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.Tasks.UnobservedTaskExceptionEventArgs" /> class with the unobserved exception.</summary>
/// <param name="exception">The Exception that has gone unobserved.</param>
// Token: 0x0600222C RID: 8748 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600222C")]
[Address(RVA = "0xB57340", Offset = "0xB56340", VA = "0x180B57340")]
public UnobservedTaskExceptionEventArgs(AggregateException exception)
{
}
// Token: 0x0400131B RID: 4891
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400131B")]
private AggregateException m_exception;
// Token: 0x0400131C RID: 4892
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400131C")]
internal bool m_observed;
}
}
@@ -0,0 +1,11 @@
using System;
using Cpp2IlInjected;
namespace System.Threading.Tasks
{
// Token: 0x0200039D RID: 925
[Token(Token = "0x200039D")]
internal struct VoidTaskResult
{
}
}