using System; using System.Diagnostics; using System.Threading.Tasks; using Cpp2IlInjected; namespace System.Runtime.CompilerServices { /// Represents a builder for asynchronous methods that returns a task and provides a parameter for the result. /// The result to use to complete the task. // Token: 0x02000551 RID: 1361 [Token(Token = "0x2000551")] public struct AsyncTaskMethodBuilder { /// Creates an instance of the class. /// A new instance of the builder. // Token: 0x06002C19 RID: 11289 RVA: 0x00018BD0 File Offset: 0x00016DD0 [Token(Token = "0x6002C19")] [Address(RVA = "0x437C30", Offset = "0x436C30", VA = "0x180437C30")] public static AsyncTaskMethodBuilder Create() { return default(AsyncTaskMethodBuilder); } /// Begins running the builder with the associated state machine. /// The state machine instance, passed by reference. /// The type of the state machine. /// /// is . // Token: 0x06002C1A RID: 11290 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C1A")] [Address(RVA = "0x2505880", Offset = "0x2504880", VA = "0x182505880")] [DebuggerStepThrough] public void Start(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine { } /// Associates the builder with the specified state machine. /// The state machine instance to associate with the builder. /// /// is . /// The state machine was previously set. // Token: 0x06002C1B RID: 11291 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C1B")] [Address(RVA = "0x2F2CA10", Offset = "0x2F2BA10", VA = "0x182F2CA10")] public void SetStateMachine(IAsyncStateMachine stateMachine) { } /// Schedules the state machine to proceed to the next action when the specified awaiter completes. /// The awaiter. /// The state machine. /// The type of the awaiter. /// The type of the state machine. // Token: 0x06002C1C RID: 11292 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C1C")] [Address(RVA = "0x24FF470", Offset = "0x24FE470", VA = "0x1824FF470")] public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine { } /// Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code. /// The awaiter. /// The state machine. /// The type of the awaiter. /// The type of the state machine. // Token: 0x06002C1D RID: 11293 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C1D")] [Address(RVA = "0x2503CF0", Offset = "0x2502CF0", VA = "0x182503CF0")] public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine { } /// Gets the task for this builder. /// The task for this builder. // Token: 0x170006B4 RID: 1716 // (get) Token: 0x06002C1E RID: 11294 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x170006B4")] public Task Task { [Token(Token = "0x6002C1E")] [Address(RVA = "0x2F2D490", Offset = "0x2F2C490", VA = "0x182F2D490")] get { return null; } } /// Marks the task as successfully completed. /// The result to use to complete the task. /// The task has already completed. // Token: 0x06002C1F RID: 11295 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C1F")] [Address(RVA = "0x2F2B760", Offset = "0x2F2A760", VA = "0x182F2B760")] public void SetResult(TResult result) { } // Token: 0x06002C20 RID: 11296 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C20")] [Address(RVA = "0x2F2B950", Offset = "0x2F2A950", VA = "0x182F2B950")] internal void SetResult(Task completedTask) { } /// Marks the task as failed and binds the specified exception to the task. /// The exception to bind to the task. /// /// is . /// The task has already completed. // Token: 0x06002C21 RID: 11297 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6002C21")] [Address(RVA = "0x2F2ACD0", Offset = "0x2F29CD0", VA = "0x182F2ACD0")] public void SetException(Exception exception) { } // Token: 0x06002C22 RID: 11298 RVA: 0x00002082 File Offset: 0x00000282 [Token(Token = "0x6002C22")] [Address(RVA = "0x2F23860", Offset = "0x2F22860", VA = "0x182F23860")] private Task GetTaskForResult(TResult result) { return null; } // Token: 0x04001930 RID: 6448 [Token(Token = "0x4001930")] internal static readonly Task s_defaultResultTask; // Token: 0x04001931 RID: 6449 [FieldOffset(Offset = "0x0")] [Token(Token = "0x4001931")] private AsyncMethodBuilderCore m_coreState; // Token: 0x04001932 RID: 6450 [FieldOffset(Offset = "0x0")] [Token(Token = "0x4001932")] private Task m_task; } }