Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Runtime/CompilerServices/AsyncTaskMethodBuilder.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

123 lines
5.6 KiB
C#

using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Runtime.CompilerServices
{
/// <summary>Represents a builder for asynchronous methods that return a task.</summary>
// Token: 0x02000550 RID: 1360
[Token(Token = "0x2000550")]
public struct AsyncTaskMethodBuilder
{
/// <summary>Creates an instance of the <see cref="T:System.Runtime.CompilerServices.AsyncTaskMethodBuilder" /> class.</summary>
/// <returns>A new instance of the builder.</returns>
// Token: 0x06002C10 RID: 11280 RVA: 0x00018BB8 File Offset: 0x00016DB8
[Token(Token = "0x6002C10")]
[Address(RVA = "0x437C30", Offset = "0x436C30", VA = "0x180437C30")]
public static AsyncTaskMethodBuilder Create()
{
return default(AsyncTaskMethodBuilder);
}
/// <summary>Begins running the builder with the associated state machine.</summary>
/// <param name="stateMachine">The state machine instance, passed by reference.</param>
/// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stateMachine" /> is <see langword="null" />.</exception>
// Token: 0x06002C11 RID: 11281 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C11")]
[Address(RVA = "0x2507FE0", Offset = "0x2506FE0", VA = "0x182507FE0")]
[DebuggerStepThrough]
public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine
{
}
/// <summary>Associates the builder with the specified state machine.</summary>
/// <param name="stateMachine">The state machine instance to associate with the builder.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="stateMachine" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The state machine was previously set.</exception>
// Token: 0x06002C12 RID: 11282 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C12")]
[Address(RVA = "0x2CE89A0", Offset = "0x2CE79A0", VA = "0x182CE89A0")]
public void SetStateMachine(IAsyncStateMachine stateMachine)
{
}
/// <summary>Schedules the state machine to proceed to the next action when the specified awaiter completes.</summary>
/// <param name="awaiter">The awaiter.</param>
/// <param name="stateMachine">The state machine.</param>
/// <typeparam name="TAwaiter">The type of the awaiter.</typeparam>
/// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
// Token: 0x06002C13 RID: 11283 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C13")]
[Address(RVA = "0x2505B30", Offset = "0x2504B30", VA = "0x182505B30")]
public void AwaitOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : INotifyCompletion where TStateMachine : IAsyncStateMachine
{
}
/// <summary>Schedules the state machine to proceed to the next action when the specified awaiter completes. This method can be called from partially trusted code.</summary>
/// <param name="awaiter">The awaiter.</param>
/// <param name="stateMachine">The state machine.</param>
/// <typeparam name="TAwaiter">The type of the awaiter.</typeparam>
/// <typeparam name="TStateMachine">The type of the state machine.</typeparam>
// Token: 0x06002C14 RID: 11284 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C14")]
[Address(RVA = "0x2505C50", Offset = "0x2504C50", VA = "0x182505C50")]
public void AwaitUnsafeOnCompleted<TAwaiter, TStateMachine>(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : ICriticalNotifyCompletion where TStateMachine : IAsyncStateMachine
{
}
/// <summary>Gets the task for this builder.</summary>
/// <returns>The task for this builder.</returns>
/// <exception cref="T:System.InvalidOperationException">The builder is not initialized.</exception>
// Token: 0x170006B3 RID: 1715
// (get) Token: 0x06002C15 RID: 11285 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170006B3")]
public Task Task
{
[Token(Token = "0x6002C15")]
[Address(RVA = "0x2CE8A60", Offset = "0x2CE7A60", VA = "0x182CE8A60")]
get
{
return null;
}
}
/// <summary>Marks the task as successfully completed.</summary>
/// <exception cref="T:System.InvalidOperationException">The task has already completed.
/// -or-
/// The builder is not initialized.</exception>
// Token: 0x06002C16 RID: 11286 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C16")]
[Address(RVA = "0x2CE8930", Offset = "0x2CE7930", VA = "0x182CE8930")]
public void SetResult()
{
}
/// <summary>Marks the task as failed and binds the specified exception to the task.</summary>
/// <param name="exception">The exception to bind to the task.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="exception" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.InvalidOperationException">The task has already completed.
/// -or-
/// The builder is not initialized.</exception>
// Token: 0x06002C17 RID: 11287 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002C17")]
[Address(RVA = "0x2CE88E0", Offset = "0x2CE78E0", VA = "0x182CE88E0")]
public void SetException(Exception exception)
{
}
// Token: 0x0400192E RID: 6446
[Token(Token = "0x400192E")]
private static readonly Task<VoidTaskResult> s_cachedCompleted;
// Token: 0x0400192F RID: 6447
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x400192F")]
private AsyncTaskMethodBuilder<VoidTaskResult> m_builder;
}
}