a
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
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: 0x02000534 RID: 1332
|
||||
[Token(Token = "0x2000534")]
|
||||
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: 0x06002A03 RID: 10755 RVA: 0x000167E8 File Offset: 0x000149E8
|
||||
[Token(Token = "0x6002A03")]
|
||||
[Address(RVA = "0x147A860", Offset = "0x1479660", VA = "0x18147A860")]
|
||||
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: 0x06002A04 RID: 10756 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A04")]
|
||||
[Address(RVA = "0x19ED110", Offset = "0x19EBF10", VA = "0x1819ED110")]
|
||||
[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: 0x06002A05 RID: 10757 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A05")]
|
||||
[Address(RVA = "0x294B9E0", Offset = "0x294A7E0", VA = "0x18294B9E0")]
|
||||
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: 0x06002A06 RID: 10758 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A06")]
|
||||
[Address(RVA = "0x19EC900", Offset = "0x19EB700", VA = "0x1819EC900")]
|
||||
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: 0x06002A07 RID: 10759 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A07")]
|
||||
[Address(RVA = "0x19ECA20", Offset = "0x19EB820", VA = "0x1819ECA20")]
|
||||
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: 0x1700063B RID: 1595
|
||||
// (get) Token: 0x06002A08 RID: 10760 RVA: 0x00002082 File Offset: 0x00000282
|
||||
[Token(Token = "0x1700063B")]
|
||||
public Task Task
|
||||
{
|
||||
[Token(Token = "0x6002A08")]
|
||||
[Address(RVA = "0x294BAA0", Offset = "0x294A8A0", VA = "0x18294BAA0")]
|
||||
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: 0x06002A09 RID: 10761 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A09")]
|
||||
[Address(RVA = "0x294B970", Offset = "0x294A770", VA = "0x18294B970")]
|
||||
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: 0x06002A0A RID: 10762 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6002A0A")]
|
||||
[Address(RVA = "0x294B920", Offset = "0x294A720", VA = "0x18294B920")]
|
||||
public void SetException(Exception exception)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400186B RID: 6251
|
||||
[Token(Token = "0x400186B")]
|
||||
private static readonly Task<VoidTaskResult> s_cachedCompleted;
|
||||
|
||||
// Token: 0x0400186C RID: 6252
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400186C")]
|
||||
private AsyncTaskMethodBuilder<VoidTaskResult> m_builder;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user