63 references to IAsyncStateMachine
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
90(typeof(IAsyncStateMachine).IsAssignableFrom(type) || typeof(IEnumerator).IsAssignableFrom(type)))
Microsoft.AspNetCore.Hosting (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
90(typeof(IAsyncStateMachine).IsAssignableFrom(type) || typeof(IEnumerator).IsAssignableFrom(type)))
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
90(typeof(IAsyncStateMachine).IsAssignableFrom(type) || typeof(IEnumerator).IsAssignableFrom(type)))
mscorlib (1)
parent\ref\mscorlib.cs (1)
550[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IAsyncStateMachine))]
netstandard (1)
netstandard.cs (1)
1535[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IAsyncStateMachine))]
System.Private.CoreLib (56)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncIteratorMethodBuilder.cs (4)
26/// <summary>Invokes <see cref="IAsyncStateMachine.MoveNext"/> on the state machine while guarding the <see cref="ExecutionContext"/>.</summary> 30public void MoveNext<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 40where TStateMachine : IAsyncStateMachine => 50where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (3)
21public static void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine 57public static void SetStateMachine(IAsyncStateMachine stateMachine, Task? task) 89internal static string GetAsyncStateMachineDescription(IAsyncStateMachine stateMachine)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncStateMachineDiagnostics.cs (1)
11where TStateMachine : IAsyncStateMachine
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncStateMachineDispatcher.cs (1)
326public IAsyncStateMachine GetStateMachineObject()
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilder.cs (4)
32public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 39public void SetStateMachine(IAsyncStateMachine stateMachine) => 52where TStateMachine : IAsyncStateMachine => 66where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (13)
34public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 41public void SetStateMachine(IAsyncStateMachine stateMachine) => 54where TStateMachine : IAsyncStateMachine => 60where TStateMachine : IAsyncStateMachine 92where TStateMachine : IAsyncStateMachine => 99where TStateMachine : IAsyncStateMachine 173where TStateMachine : IAsyncStateMachine 201else if (taskField is AsyncStateMachineBox<IAsyncStateMachine> weaklyTypedBox) 417where TStateMachine : IAsyncStateMachine 452string stateMachineName = typeof(TStateMachine) != typeof(IAsyncStateMachine) ? 455nameof(IAsyncStateMachine); 583IAsyncStateMachine IAsyncStateMachineBox.GetStateMachineObject() => StateMachine!; // likely boxes, only use for debugging 629return new AsyncStateMachineBox<IAsyncStateMachine>();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncValueTaskMethodBuilder.cs (4)
30public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 35public void SetStateMachine(IAsyncStateMachine stateMachine) => 86where TStateMachine : IAsyncStateMachine => 97where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncValueTaskMethodBuilderT.cs (4)
35public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 40public void SetStateMachine(IAsyncStateMachine stateMachine) => 93where TStateMachine : IAsyncStateMachine => 104where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (4)
39public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 46public void SetStateMachine(IAsyncStateMachine stateMachine) => 59where TStateMachine : IAsyncStateMachine => 72where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\IAsyncStateMachine.cs (1)
24void SetStateMachine(IAsyncStateMachine stateMachine);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\IAsyncStateMachineBox.cs (1)
21IAsyncStateMachine GetStateMachineObject();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilder.cs (4)
32where TStateMachine : IAsyncStateMachine => 37public void SetStateMachine(IAsyncStateMachine stateMachine) => 88where TStateMachine : IAsyncStateMachine => 99where TStateMachine : IAsyncStateMachine =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (11)
40public void Start<TStateMachine>(ref TStateMachine stateMachine) where TStateMachine : IAsyncStateMachine => 45public void SetStateMachine(IAsyncStateMachine stateMachine) => 108where TStateMachine : IAsyncStateMachine => 114where TStateMachine : IAsyncStateMachine 143where TStateMachine : IAsyncStateMachine => 150where TStateMachine : IAsyncStateMachine 164where TStateMachine : IAsyncStateMachine 191if (boxFieldRef is StateMachineBox<IAsyncStateMachine> weaklyTypedBox) 233internal static StateMachineBox CreateWeaklyTypedStateMachineBox() => new StateMachineBox<IAsyncStateMachine>(); 312where TStateMachine : IAsyncStateMachine 481IAsyncStateMachine IAsyncStateMachineBox.GetStateMachineObject() => StateMachine!; // likely boxes, only use for debugging
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TplEventSource.cs (1)
551IAsyncStateMachine stateMachine = stateMachineBox.GetStateMachineObject();
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
587[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IAsyncStateMachine))]
System.Threading.Tasks (1)
System.Threading.Tasks.cs (1)
14[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IAsyncStateMachine))]