110 references to ReadAllAsync
aspire (5)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
121await foreach (var _ in connectionChanges.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Backchannel\ResourceSnapshotWatcher.cs (1)
243await foreach (var _ in updateSignal.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Commands\PsCommand.cs (1)
266await foreach (var update in updates.Reader.ReadAllAsync(followCancellationToken).ConfigureAwait(false))
Diagnostics\FileLoggerProvider.cs (1)
180await foreach (var message in _channel.Reader.ReadAllAsync())
Projects\ProjectLocator.cs (1)
206await foreach (var candidate in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
aspire-tray (1)
NativeSmokeHarness.cs (1)
432await foreach (var snapshot in _snapshots.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Cli.Tests (10)
Backchannel\ResourceSnapshotWatcherTests.cs (1)
651await foreach (var snapshot in source.ReadAllAsync(cancellationToken))
Backchannel\TrayWatchStreamTests.cs (8)
113var monitor = new TestAuxiliaryBackchannelMonitor { WatchConnectionsHandler = token => snapshots.Reader.ReadAllAsync(token) }; 621var monitor = new TestAuxiliaryBackchannelMonitor { WatchConnectionsHandler = token => snapshots.Reader.ReadAllAsync(token) }; 744var monitor = new TestAuxiliaryBackchannelMonitor { WatchConnectionsHandler = token => snapshots.Reader.ReadAllAsync(token) }; 803await foreach (var resource in resourceUpdates.Reader.ReadAllAsync(token)) 827connection.WatchResourceSnapshotsHandler = (_, token) => resourceUpdates.Reader.ReadAllAsync(token); 875connection.WatchResourceSnapshotsHandler = (_, token) => resourceUpdates.Reader.ReadAllAsync(token); 920var monitor = new TestAuxiliaryBackchannelMonitor { WatchConnectionsHandler = token => snapshots.Reader.ReadAllAsync(token) }; 1054await foreach (var connections in snapshots.Reader.ReadAllAsync(token))
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
59await foreach (var _ in _connectionChanges.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Components.Common.TestUtilities (1)
ActivityNotifier.cs (1)
41await foreach (var activity in _activityChannel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Dashboard (7)
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (2)
259await foreach (var span in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 315await foreach (var log in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
ServiceClient\DashboardClient.cs (3)
760await foreach (var update in _incomingInteractionChannel.Reader.ReadAllAsync(cts.Token).ConfigureAwait(false)) 980await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken: enumeratorCancellationToken).ConfigureAwait(false)) 1033await foreach (var batch in channel.Reader.ReadAllAsync(combinedTokens.Token).ConfigureAwait(false))
ServiceClient\SqliteResourceRepository.cs (2)
154await foreach (var lines in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 484await foreach (var changes in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Dashboard.Components.Tests (5)
tests\Shared\TestDashboardClient.cs (5)
136await foreach (var update in provider().Reader.ReadAllAsync(cancellationToken)) 175await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 199await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 232await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 257await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken))
Aspire.Dashboard.Playwright.Tests (6)
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
90_resourceChannelProvider is { } provider ? provider().Reader.ReadAllAsync(cancellationToken) : Test()
tests\Shared\TestDashboardClient.cs (5)
136await foreach (var update in provider().Reader.ReadAllAsync(cancellationToken)) 175await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 199await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 232await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 257await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken))
Aspire.Dashboard.Tests (10)
ResourceOutgoingPeerResolverTests.cs (4)
341await foreach (var item in sourceChannel.Reader.ReadAllAsync(cancellationToken)) 366subscribeResult.SetResult(new ResourceViewModelSubscription([], sourceChannel.Reader.ReadAllAsync())); 386sourceChannel.Reader.ReadAllAsync())); 412subscribeResult.SetResult(new ResourceViewModelSubscription([], sourceChannel.Reader.ReadAllAsync()));
Shared\MockDashboardClient.cs (1)
90_resourceChannelProvider is { } provider ? provider().Reader.ReadAllAsync(cancellationToken) : Test()
tests\Shared\TestDashboardClient.cs (5)
136await foreach (var update in provider().Reader.ReadAllAsync(cancellationToken)) 175await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 199await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 232await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 257await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken))
Aspire.Hosting (8)
ApplicationModel\ResourceLoggerService.cs (2)
263await foreach (var entry in channel.Reader.ReadAllAsync(linkedCts.Token).ConfigureAwait(false)) 350await foreach (var item in channel.Reader.ReadAllAsync().ConfigureAwait(false))
ApplicationModel\ResourceNotificationService.cs (1)
851await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Backchannel\AppHostRpcTarget.cs (1)
63await foreach (var entry in AsyncEnumerableUtils.ReadUntilCancelledAsync(channel.Reader.ReadAllAsync(linkedToken), linkedToken).ConfigureAwait(false))
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1711await foreach (var logLine in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Dcp\DcpResourceWatcher.cs (1)
181await foreach (var entry in _logInformationChannel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Dcp\KubernetesService.cs (1)
365await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
InteractionService.cs (1)
719await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
1535await foreach (var operation in _operationChannel.Reader.ReadAllAsync(stoppingToken).ConfigureAwait(false))
Aspire.Hosting.DevTunnels (1)
DevTunnelMonitor.cs (1)
731await foreach (var operation in _operations.Reader.ReadAllAsync().ConfigureAwait(false))
Aspire.Hosting.Foundry (1)
FoundryExtensions.cs (1)
473await foreach (var progress in progressChannel.Reader.ReadAllAsync(ct).ConfigureAwait(false))
Aspire.Hosting.Native.Server (2)
Api\PipelineApi.cs (1)
85_activities.Reader.ReadAllAsync(cancellationToken);
NativeDiagnosticPump.cs (1)
24await foreach (var operation in _subscription.Reader.ReadAllAsync().ConfigureAwait(false))
Aspire.Hosting.RemoteHost (1)
src\Shared\ChildProcess.cs (1)
707await foreach (var line in lines.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
Aspire.Hosting.Tests (4)
Dcp\DcpExecutorTests.cs (2)
557await foreach (var item in channel.Reader.ReadAllAsync()) 4375await foreach (var item in logStreamPipesChannel.Reader.ReadAllAsync())
ResourceCommandServiceTests.cs (2)
163await foreach (var resourceName in commandResourcesChannel.Reader.ReadAllAsync().DefaultTimeout()) 205await foreach (var resourceName in commandResourcesChannel.Reader.ReadAllAsync().DefaultTimeout())
Aspire.Hosting.TestUtilities (2)
Utils\Grpc\TestServerStreamWriter.cs (1)
32return _channel.Reader.ReadAllAsync();
Utils\TestConsoleLogsService.cs (1)
28await foreach (var result in channel.Reader.ReadAllAsync(cancellationToken))
Aspire.Tray.Tests (1)
Helpers\TestAppHostClient.cs (1)
35await foreach (var snapshot in _snapshots.Reader.ReadAllAsync(cancellationToken).ConfigureAwait(false))
dotnet-aot (1)
parent\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs (1)
116await foreach (var nonParallelizedGroup in _channel.Reader.ReadAllAsync(_cancellationToken))
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
18=> reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.AspNetCore.SignalR.Core (1)
StreamTracker.cs (1)
149return _channel.Reader.ReadAllAsync();
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
18=> reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Microsoft.DotNet.HotReload.Watch (1)
Aspire\AspireServiceFactory.cs (1)
183await foreach (var line in outputChannel.Reader.ReadAllAsync(cancellationToken))
Microsoft.Extensions.AI (1)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
162return updates.Reader.ReadAllAsync(cancellationToken);
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
77await args.consumeItems(items.ReadAllAsync(cancellationToken), args.args, cancellationToken).ConfigureAwait(false); 181consumeItems: static (reader, args, cancellationToken) => args.consumeItems(reader.ReadAllAsync(cancellationToken), args.args, cancellationToken), 268await foreach (var item in reader.ReadAllAsync(cancellationToken).ConfigureAwait(false)) 279return channel.Reader.ReadAllAsync(cancellationToken);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
57return channel.Reader.ReadAllAsync(cancellationToken);
Stress.ApiService (2)
ProducerConsumer.cs (1)
30await foreach (var item in _channel.Reader.ReadAllAsync())
Program.cs (1)
373await foreach (var message in channel.Reader.ReadAllAsync(cancellationToken))
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
1111await foreach (WatcherEvent @event in _eventQueue.Reader.ReadAllAsync().ConfigureAwait(false))