using System; using System.Collections.Generic; using Cpp2IlInjected; namespace System.Threading.Tasks { /// Provides support for creating and scheduling objects. // Token: 0x02000392 RID: 914 [Token(Token = "0x2000392")] public class TaskFactory { // Token: 0x06001FF9 RID: 8185 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001FF9")] [Address(RVA = "0x1D9D480", Offset = "0x1D9C280", VA = "0x181D9D480")] private TaskScheduler GetDefaultScheduler(Task currTask) { return null; } /// Initializes a instance with the default configuration. // Token: 0x06001FFA RID: 8186 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001FFA")] [Address(RVA = "0x1D9D8B0", Offset = "0x1D9C6B0", VA = "0x181D9D8B0")] public TaskFactory() { } /// Initializes a instance with the specified configuration. /// The default that will be assigned to tasks created by this unless another CancellationToken is explicitly specified while calling the factory methods. /// The default to use when creating tasks with this TaskFactory. /// The default to use when creating continuation tasks with this TaskFactory. /// The default to use to schedule any Tasks created with this TaskFactory. A null value indicates that TaskScheduler.Current should be used. /// The argument specifies an invalid value. For more information, see the Remarks for . /// -or- /// The argument specifies an invalid value. // Token: 0x06001FFB RID: 8187 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001FFB")] [Address(RVA = "0x1D9D710", Offset = "0x1D9C510", VA = "0x181D9D710")] public TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) { } // Token: 0x06001FFC RID: 8188 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001FFC")] [Address(RVA = "0x1D9CFC0", Offset = "0x1D9BDC0", VA = "0x181D9CFC0")] internal static void CheckCreationOptions(TaskCreationOptions creationOptions) { } /// Creates and starts a . /// The action delegate to execute asynchronously. /// The that will be assigned to the new /// A TaskCreationOptions value that controls the behavior of the created /// The that is used to schedule the created . /// The started . /// The provided has already been disposed. /// The exception that is thrown when the argument is null. /// -or- /// The exception that is thrown when the argument is null. /// The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for // Token: 0x06001FFD RID: 8189 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001FFD")] [Address(RVA = "0x1D9D660", Offset = "0x1D9C460", VA = "0x181D9D660")] public Task StartNew(Action action, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) { return null; } /// Creates and starts a . /// The action delegate to execute asynchronously. /// An object containing data to be used by the delegate. /// The that will be assigned to the new task. /// A TaskCreationOptions value that controls the behavior of the created /// The that is used to schedule the created . /// The started . /// The provided has already been disposed. /// The exception that is thrown when the argument is null. /// -or- /// The exception that is thrown when the argument is null. /// The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for // Token: 0x06001FFE RID: 8190 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001FFE")] [Address(RVA = "0x1D9D5A0", Offset = "0x1D9C3A0", VA = "0x181D9D5A0")] public Task StartNew(Action action, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) { return null; } /// Creates and starts a . /// A function delegate that returns the future result to be available through the . /// An object containing data to be used by the delegate. /// The type of the result available through the . /// The started . /// The exception that is thrown when the argument is null. // Token: 0x06001FFF RID: 8191 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6001FFF")] [Address(RVA = "0x1B5E340", Offset = "0x1B5D140", VA = "0x181B5E340")] public Task StartNew(Func function, object state) { return null; } /// Creates and starts a . /// A function delegate that returns the future result to be available through the . /// An object containing data to be used by the delegate. /// The that will be assigned to the new task. /// A TaskCreationOptions value that controls the behavior of the created . /// The that is used to schedule the created . /// The type of the result available through the . /// The started . /// The provided has already been disposed. /// The exception that is thrown when the argument is null. /// -or- /// The exception that is thrown when the argument is null. /// The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for // Token: 0x06002000 RID: 8192 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002000")] [Address(RVA = "0x1B5E820", Offset = "0x1B5D620", VA = "0x181B5E820")] public Task StartNew(Func function, object state, CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskScheduler scheduler) { return null; } /// Creates a that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern. /// The delegate that begins the asynchronous operation. /// The delegate that ends the asynchronous operation. /// The first argument passed to the delegate. /// The second argument passed to the delegate. /// An object containing data to be used by the delegate. /// The type of the second argument passed to delegate. /// The type of the first argument passed to the delegate. /// The created that represents the asynchronous operation. /// The exception that is thrown when the argument is null. /// -or- /// The exception that is thrown when the argument is null. // Token: 0x06002001 RID: 8193 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002001")] [Address(RVA = "0x1B5E2C0", Offset = "0x1B5D0C0", VA = "0x181B5E2C0")] public Task FromAsync(Func beginMethod, Action endMethod, TArg1 arg1, TArg2 arg2, object state) { return null; } /// Creates a that represents a pair of begin and end methods that conform to the Asynchronous Programming Model pattern. /// The delegate that begins the asynchronous operation. /// The delegate that ends the asynchronous operation. /// The first argument passed to the delegate. /// The second argument passed to the delegate. /// An object containing data to be used by the delegate. /// The TaskCreationOptions value that controls the behavior of the created . /// The type of the second argument passed to delegate. /// The type of the first argument passed to the delegate. /// The created that represents the asynchronous operation. /// The exception that is thrown when the argument is null. /// -or- /// The exception that is thrown when the argument is null. /// The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. The exception that is thrown when the argument specifies an invalid TaskCreationOptions value. For more information, see the Remarks for // Token: 0x06002002 RID: 8194 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002002")] [Address(RVA = "0x1B5E2A0", Offset = "0x1B5D0A0", VA = "0x181B5E2A0")] public Task FromAsync(Func beginMethod, Action endMethod, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions) { return null; } // Token: 0x06002003 RID: 8195 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002003")] [Address(RVA = "0x1D9D030", Offset = "0x1D9BE30", VA = "0x181D9D030")] internal static void CheckFromAsyncOptions(TaskCreationOptions creationOptions, bool hasBeginMethod) { } // Token: 0x06002004 RID: 8196 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002004")] [Address(RVA = "0x1D9D250", Offset = "0x1D9C050", VA = "0x181D9D250")] internal static Task CommonCWAnyLogic(IList tasks) { return null; } // Token: 0x06002005 RID: 8197 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002005")] [Address(RVA = "0x1D9D140", Offset = "0x1D9BF40", VA = "0x181D9D140")] internal static void CheckMultiTaskContinuationOptions(TaskContinuationOptions continuationOptions) { } // Token: 0x0400124A RID: 4682 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400124A")] private CancellationToken m_defaultCancellationToken; // Token: 0x0400124B RID: 4683 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400124B")] private TaskScheduler m_defaultScheduler; // Token: 0x0400124C RID: 4684 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400124C")] private TaskCreationOptions m_defaultCreationOptions; // Token: 0x0400124D RID: 4685 [FieldOffset(Offset = "0x24")] [Token(Token = "0x400124D")] private TaskContinuationOptions m_defaultContinuationOptions; // Token: 0x02000393 RID: 915 [Token(Token = "0x2000393")] internal sealed class CompleteOnInvokePromise : Task, ITaskCompletionAction { // Token: 0x06002006 RID: 8198 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002006")] [Address(RVA = "0x1D98680", Offset = "0x1D97480", VA = "0x181D98680")] public CompleteOnInvokePromise(IList tasks) { } // Token: 0x06002007 RID: 8199 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002007")] [Address(RVA = "0x1D98470", Offset = "0x1D97270", VA = "0x181D98470", Slot = "22")] public void Invoke(Task completingTask) { } // Token: 0x0400124E RID: 4686 [FieldOffset(Offset = "0x58")] [Token(Token = "0x400124E")] private IList _tasks; // Token: 0x0400124F RID: 4687 [FieldOffset(Offset = "0x60")] [Token(Token = "0x400124F")] private int m_firstTaskAlreadyCompleted; } } }