16 implementations of IValueTaskSource
Microsoft.AspNetCore.Server.IIS (2)
Core\IO\AsyncIOOperation.cs (1)
11internal abstract class AsyncIOOperation : IValueTaskSource<int>, IValueTaskSource
src\aspnetcore\src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
11internal sealed class ManualResetValueTaskSource<T> : IValueTaskSource<T>, IValueTaskSource
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
11internal sealed class ManualResetValueTaskSource<T> : IValueTaskSource<T>, IValueTaskSource
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
22private sealed class Http2Stream : IValueTaskSource, IHttpStreamHeadersHandler, IHttpTrace
System.Net.Quic (3)
src\runtime\src\libraries\Common\src\System\Net\StreamBuffer.cs (1)
285private sealed class ResettableValueTaskSource : IValueTaskSource
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
14internal sealed class ResettableValueTaskSource : IValueTaskSource
System\Net\Quic\Internal\ValueTaskSource.cs (1)
14internal sealed class ValueTaskSource : IValueTaskSource
System.Net.Sockets (2)
System\Net\Sockets\Socket.Tasks.cs (1)
977internal sealed class AwaitableSocketAsyncEventArgs : SocketAsyncEventArgs, IValueTaskSource, IValueTaskSource<int>, IValueTaskSource<Socket>, IValueTaskSource<SocketReceiveFromResult>, IValueTaskSource<SocketReceiveMessageFromResult>
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
924private sealed class MultiConnectSocketAsyncEventArgs : SocketAsyncEventArgs, IValueTaskSource
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (1)
30internal sealed class ThreadPoolValueTaskSource : IThreadPoolWorkItem, IValueTaskSource<int>, IValueTaskSource<long>, IValueTaskSource
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (2)
246internal abstract class StateMachineBox : IValueTaskSource<TResult>, IValueTaskSource 311IValueTaskSource<TResult>, IValueTaskSource, IAsyncStateMachineBox, IThreadPoolWorkItem
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
7084private sealed class WhenEachState : Queue<Task>, IValueTaskSource, ITaskCompletionAction
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
19internal class SocketAwaitableEventArgs : SocketAsyncEventArgs, IValueTaskSource<int>, IValueTaskSource
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
19internal class SocketAwaitableEventArgs : SocketAsyncEventArgs, IValueTaskSource<int>, IValueTaskSource
System.Threading.Channels (1)
System\Threading\Channels\AsyncOperation.cs (1)
432internal abstract class AsyncOperation<TSelf> : AsyncOperation, IValueTaskSource
95 references to IValueTaskSource
Microsoft.AspNetCore.Server.IIS (2)
Core\IO\AsyncIOOperation.cs (1)
58void IValueTaskSource.GetResult(short token)
src\aspnetcore\src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
22void IValueTaskSource.GetResult(short token) => _core.GetResult(token);
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
22void IValueTaskSource.GetResult(short token) => _core.GetResult(token);
mscorlib (1)
mscorlib.cs (1)
107[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.IValueTaskSource))]
netstandard (1)
netstandard.cs (1)
2112[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.IValueTaskSource))]
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\CreditWaiter.cs (1)
23/// <summary><see cref="IValueTaskSource"/> implementation.</summary>
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (3)
1417ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) => _waitSource.GetStatus(token); 1418void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _waitSource.OnCompleted(continuation, state, token, flags); 1419void IValueTaskSource.GetResult(short token)
System.Net.Quic (9)
src\runtime\src\libraries\Common\src\System\Net\StreamBuffer.cs (3)
297ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) => _waitSource.GetStatus(token); 299void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) => _waitSource.OnCompleted(continuation, state, token, flags); 301void IValueTaskSource.GetResult(short token)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (3)
240ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) 243void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) 246void IValueTaskSource.GetResult(short token)
System\Net\Quic\Internal\ValueTaskSource.cs (3)
169ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) 172void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) 175void IValueTaskSource.GetResult(short token)
System.Net.Sockets (1)
System\Net\Sockets\Socket.Tasks.cs (1)
1267void IValueTaskSource.GetResult(short token)
System.Private.CoreLib (71)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (3)
488Debug.Assert(obj is IValueTaskSource); 489vtsCont.Initialize(Unsafe.As<object, IValueTaskSource>(ref obj), valueTask._token); 503private static unsafe void Suspend(IValueTaskSource source, short token, bool continueOnCapturedContext)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.ValueTaskSourceContinuation.cs (7)
36public void Initialize(IValueTaskSource source, short token) 54Debug.Assert(source is IValueTaskSource); 55IValueTaskSource typedSource = Unsafe.As<object, IValueTaskSource>(ref source); 61Debug.Assert(source is IValueTaskSource); 62IValueTaskSource typedSource = Unsafe.As<object, IValueTaskSource>(ref source);
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (2)
26/// A reusable <see cref="IValueTaskSource"/> implementation that 65void IValueTaskSource.GetResult(short token) => GetResult(token);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.cs (6)
229Debug.Assert(obj is IValueTaskSource); 230IValueTaskSource vts = Unsafe.As<object, IValueTaskSource>(ref obj); 313Debug.Assert(obj is IValueTaskSource); 314IValueTaskSource vts = Unsafe.As<object, IValueTaskSource>(ref obj);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredValueTaskAwaitable.cs (6)
55Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 63Unsafe.As<IValueTaskSource>(obj).OnCompleted(ValueTaskAwaiter.s_invokeActionDelegate, continuation, _value._token, 77Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 85Unsafe.As<IValueTaskSource>(obj).OnCompleted(ValueTaskAwaiter.s_invokeActionDelegate, continuation, _value._token, 97Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 113Unsafe.As<IValueTaskSource>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (2)
299void IValueTaskSource.GetResult(short token) => throw NotImplemented.ByDesign; 468void IValueTaskSource.GetResult(short token)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ValueTaskAwaiter.cs (6)
50Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 58Unsafe.As<IValueTaskSource>(obj).OnCompleted(s_invokeActionDelegate, continuation, _value._token, ValueTaskSourceOnCompletedFlags.UseSchedulingContext | ValueTaskSourceOnCompletedFlags.FlowExecutionContext); 70Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 78Unsafe.As<IValueTaskSource>(obj).OnCompleted(s_invokeActionDelegate, continuation, _value._token, ValueTaskSourceOnCompletedFlags.UseSchedulingContext); 89Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 105Unsafe.As<IValueTaskSource>(obj).OnCompleted(ThreadPool.s_invokeAsyncStateMachineBox, box, _value._token, ValueTaskSourceOnCompletedFlags.UseSchedulingContext);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\IValueTaskSource.cs (4)
8/// <see cref="IValueTaskSource.OnCompleted"/> and <see cref="IValueTaskSource{TResult}.OnCompleted"/> 30/// <summary>Indicates the status of an <see cref="IValueTaskSource"/> or <see cref="IValueTaskSource{TResult}"/>.</summary> 50/// <summary>Schedules the continuation action for this <see cref="IValueTaskSource"/>.</summary> 57/// <summary>Gets the result of the <see cref="IValueTaskSource"/>.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (1)
10/// <summary>Provides the core logic for implementing a manual-reset <see cref="IValueTaskSource"/> or <see cref="IValueTaskSource{TResult}"/>.</summary>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (3)
7118void IValueTaskSource.GetResult(short token) => _waitForNextCompletedTask.GetResult(token); 7119ValueTaskSourceStatus IValueTaskSource.GetStatus(short token) => _waitForNextCompletedTask.GetStatus(token); 7120void IValueTaskSource.OnCompleted(Action<object?> continuation, object? state, short token, ValueTaskSourceOnCompletedFlags flags) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (31)
38/// <see cref="ValueTask"/> instances may be backed by <see cref="IValueTaskSource"/> instances that are reusable, and such 45/// was constructed from an <see cref="IValueTaskSource"/>. 61/// <summary>null if representing a successful synchronous completion, otherwise a <see cref="Task"/> or a <see cref="IValueTaskSource"/>.</summary> 63/// <summary>Opaque value passed through to the <see cref="IValueTaskSource"/>.</summary> 88/// <summary>Initialize the <see cref="ValueTask"/> with a <see cref="IValueTaskSource"/> object that represents the operation.</summary> 90/// <param name="token">Opaque value passed through to the <see cref="IValueTaskSource"/>.</param> 92public ValueTask(IValueTaskSource source, short token) 182Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 186GetTaskForValueTaskSource(Unsafe.As<IValueTaskSource>(obj)); 192/// <summary>Creates a <see cref="Task"/> to represent the <see cref="IValueTaskSource"/>.</summary> 194/// The <see cref="IValueTaskSource"/> is passed in rather than reading and casting <see cref="_obj"/> 197private Task GetTaskForValueTaskSource(IValueTaskSource t) 238/// <summary>Type used to create a <see cref="Task"/> to represent a <see cref="IValueTaskSource"/>.</summary> 244vtst._source is not IValueTaskSource source) 288/// <summary>The associated <see cref="IValueTaskSource"/>.</summary> 289private IValueTaskSource? _source; 293internal ValueTaskSourceAsTask(IValueTaskSource source, short token) 308Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 320return Unsafe.As<IValueTaskSource>(obj).GetStatus(_token) != ValueTaskSourceStatus.Pending; 331Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 343return Unsafe.As<IValueTaskSource>(obj).GetStatus(_token) == ValueTaskSourceStatus.Succeeded; 353Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 365return Unsafe.As<IValueTaskSource>(obj).GetStatus(_token) == ValueTaskSourceStatus.Faulted; 371/// If the <see cref="ValueTask"/> is backed by a result or by a <see cref="IValueTaskSource"/>, 380Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 392return Unsafe.As<IValueTaskSource>(obj).GetStatus(_token) == ValueTaskSourceStatus.Canceled; 401Debug.Assert(obj == null || obj is Task || obj is IValueTaskSource); 411Unsafe.As<IValueTaskSource>(obj).GetResult(_token); 423Debug.Assert(valueTask._obj is null or Task or IValueTaskSource, "If the ValueTask<>'s backing object is an IValueTaskSource<TResult>, it must also be IValueTaskSource."); 519/// <param name="token">Opaque value passed through to the <see cref="IValueTaskSource"/>.</param> 698/// <summary>The associated <see cref="IValueTaskSource"/>.</summary>
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
836[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.IValueTaskSource))]
System.ServiceModel.NetTcp (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
91void IValueTaskSource.GetResult(short token)
System.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\Channels\SocketAwaitableEventArgs.cs (1)
91void IValueTaskSource.GetResult(short token)
System.Threading.Channels (1)
System\Threading\Channels\AsyncOperation.cs (1)
467void IValueTaskSource.GetResult(short token)
System.Threading.Tasks.Extensions (1)
System.Threading.Tasks.Extensions.cs (1)
11[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Threading.Tasks.Sources.IValueTaskSource))]