5 types derived from Channel
System.Threading.Channels (5)
System\Threading\Channels\BoundedChannel.cs (1)
14internal sealed class BoundedChannel<T> : Channel<T>, IDebugEnumerable<T>
System\Threading\Channels\RendezvousChannel.cs (1)
14internal sealed class RendezvousChannel<T> : Channel<T>
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (1)
18internal sealed class SingleConsumerUnboundedChannel<T> : Channel<T>, IDebugEnumerable<T>
System\Threading\Channels\UnboundedChannel.cs (1)
15internal sealed class UnboundedChannel<T> : Channel<T>, IDebugEnumerable<T>
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
19internal sealed class UnboundedPrioritizedChannel<T> : Channel<T>, IDebugEnumerable<T>
553 references to Channel
aspire (11)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
85var connectionChanges = Channel.CreateUnbounded<bool>(new UnboundedChannelOptions
Backchannel\ResourceSnapshotWatcher.cs (2)
21private readonly Channel<bool>? _updateSignal; 237var updateSignal = _updateSignal ?? throw new InvalidOperationException("Resource update buffering was not enabled for this watcher.");
Backchannel\TrayWatchStream.cs (2)
39var updates = Channel.CreateBounded<Update>(new BoundedChannelOptions(1) 45var healthChanges = Channel.CreateBounded<bool>(new BoundedChannelOptions(1)
Commands\PsCommand.cs (1)
233var updates = Channel.CreateUnbounded<PsFollowUpdate>(new UnboundedChannelOptions
Diagnostics\FileLoggerProvider.cs (2)
26private readonly Channel<string>? _channel; 158private static Channel<string> CreateChannel() =>
Interaction\ExtensionInteractionService.cs (1)
43private readonly Channel<Func<Task>> _extensionTaskChannel;
Projects\ProjectLocator.cs (1)
196var channel = Channel.CreateUnbounded<AppHostProjectCandidate>(new UnboundedChannelOptions
src\Shared\ChannelExtensions.cs (1)
26this Channel<T> channel,
aspire-tray (1)
NativeSmokeHarness.cs (1)
419private readonly Channel<AppHostSnapshot> _snapshots = Channel.CreateUnbounded<AppHostSnapshot>(
Aspire.Cli.Tests (23)
Backchannel\ResourceSnapshotWatcherTests.cs (1)
536var source = Channel.CreateUnbounded<ResourceSnapshot>();
Backchannel\TrayWatchStreamTests.cs (16)
112var snapshots = Channel.CreateUnbounded<IReadOnlyList<IAppHostAuxiliaryBackchannel>>(); 440var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 565var batches = Channel.CreateUnbounded<int>(); 619var snapshots = Channel.CreateUnbounded<IReadOnlyList<IAppHostAuxiliaryBackchannel>>(); 620var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 724var snapshots = Channel.CreateUnbounded<IReadOnlyList<IAppHostAuxiliaryBackchannel>>(); 725var resourceUpdates = Channel.CreateUnbounded<ResourceSnapshot>(); 726var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 821var resourceUpdates = Channel.CreateUnbounded<ResourceSnapshot>(); 822var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 871var resourceUpdates = Channel.CreateUnbounded<ResourceSnapshot>(); 872var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 911var snapshots = Channel.CreateUnbounded<IReadOnlyList<IAppHostAuxiliaryBackchannel>>(); 912var messages = Channel.CreateUnbounded<TrayWatchMessage>(); 973var snapshots = Channel.CreateUnbounded<IReadOnlyList<IAppHostAuxiliaryBackchannel>>(); 974var messages = Channel.CreateUnbounded<TrayWatchMessage>();
Commands\AgentMcpCommandTests.cs (4)
1048var notificationChannel = Channel.CreateUnbounded<JsonRpcNotification>(); 1245var notificationChannel = Channel.CreateUnbounded<JsonRpcNotification>(); 1305var notificationChannel = Channel.CreateUnbounded<JsonRpcNotification>(); 1344var notificationChannel = Channel.CreateUnbounded<JsonRpcNotification>();
Commands\LogsCommandTests.cs (1)
1435var logLines = Channel.CreateUnbounded<string>();
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
14private readonly Channel<bool> _connectionChanges = Channel.CreateUnbounded<bool>();
Aspire.Components.Common.TestUtilities (1)
ActivityNotifier.cs (1)
16private readonly Channel<Activity> _activityChannel = Channel.CreateUnbounded<Activity>();
Aspire.Confluent.Kafka (1)
MetricsChannel.cs (1)
17private readonly Channel<string> _channel = Channel.CreateBounded<string>(new BoundedChannelOptions(10_000)
Aspire.Dashboard (32)
Api\TelemetryApiService.cs (1)
515var signal = Channel.CreateBounded<bool>(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest });
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
145private readonly Channel<IReadOnlyList<LogEntryToWrite>> _logEntryChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntryToWrite>>(new UnboundedChannelOptions
Components\Pages\ConsoleLogs.razor.cs (1)
162private readonly Channel<IReadOnlyList<LogEntryToWrite>> _logEntryChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntryToWrite>>(new UnboundedChannelOptions
Otlp\Storage\SqliteTelemetryRepository.Runtime.cs (6)
221var channel = Channel.CreateBounded<OtlpSpan>(new BoundedChannelOptions(1000) 278var channel = Channel.CreateBounded<OtlpLogEntry>(new BoundedChannelOptions(1000) 423private sealed class SpanWatcher(WatchSpansRequest request, Channel<OtlpSpan> channel) 426public Channel<OtlpSpan> Channel => channel; 429private sealed class LogWatcher(WatchLogsRequest request, Channel<OtlpLogEntry> channel) 432public Channel<OtlpLogEntry> Channel => channel;
ServiceClient\DashboardClient.cs (9)
61private readonly Channel<WatchInteractionsRequestUpdate> _incomingInteractionChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 73private ImmutableHashSet<Channel<IReadOnlyList<ResourceViewModelChange>>> _outgoingResourceChannels = []; 74private ImmutableHashSet<Channel<WatchInteractionsResponseUpdate>> _outgoingInteractionChannels = []; 615ImmutableHashSet<Channel<IReadOnlyList<ResourceViewModelChange>>> resourceChannels = []; 730foreach (var channel in resourceChannels) 807foreach (var channel in _outgoingInteractionChannels) 917var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>( 962var channel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>( 1014var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(
ServiceClient\SqliteResourceRepository.cs (13)
27private ImmutableHashSet<Channel<IReadOnlyList<ResourceViewModelChange>>> _resourceChannels = []; 28private readonly Dictionary<string, ImmutableHashSet<Channel<IReadOnlyList<ResourceLogLine>>>> _consoleChannels = new(StringComparers.ResourceName); 73var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(new UnboundedChannelOptions 119Channel<IReadOnlyList<ResourceLogLine>> channel; 321Channel<IReadOnlyList<ResourceLogLine>>[] channels; 388foreach (var channel in channels) 479Channel<IReadOnlyList<ResourceViewModelChange>> channel, 505Channel<IReadOnlyList<ResourceViewModelChange>>[] channels; 510foreach (var channel in channels) 532Channel<IReadOnlyList<ResourceViewModelChange>>[] resourceChannels; 533Channel<IReadOnlyList<ResourceLogLine>>[] consoleChannels; 540foreach (var channel in resourceChannels) 544foreach (var channel in consoleChannels)
src\Shared\ChannelExtensions.cs (1)
26this Channel<T> channel,
Aspire.Dashboard.Components.Tests (216)
Controls\ApplicationSummaryTests.cs (1)
587var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Controls\TerminalDisconnectedBannerTests.cs (3)
30var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 104var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 159var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Controls\TerminalWindowButtonTests.cs (2)
224var checkedKeys = Channel.CreateUnbounded<string[]>(); 314var failedKeys = Channel.CreateUnbounded<string[]>();
Dialogs\ManageDataDialogTests.cs (3)
38var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 74var resourcesChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 305var resourcesChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Interactions\InteractionsProviderTests.cs (30)
57var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 95var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 121var liveInteractionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 122var liveRequestsChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 123var selectedInteractionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 124var selectedRequestsChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 173var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 174var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 237var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 287var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 288var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 345var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 346var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 407var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 408var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 459var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 460var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 517var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 518var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 574var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 575var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 644var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 645var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 683var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 684var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 760var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 761var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 817var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 818var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 878var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>();
Interactions\InteractionsProviderTests.Terminal.cs (6)
27var updates = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 28var requests = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 29var shown = Channel.CreateUnbounded<(object? Content, DialogParameters Parameters)>(); 86var updates = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 87var requests = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 88var shown = Channel.CreateUnbounded<(object? Content, DialogParameters Parameters)>();
Layout\MainLayoutResourceTerminalsTests.cs (1)
103var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Layout\MainLayoutTerminalTests.cs (2)
28var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 85var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>();
Layout\NavigationAvailabilityProviderTests.cs (2)
51var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 59var reported = Channel.CreateUnbounded<NavigationAvailability>();
Layout\ResourcesLayoutActivityTests.cs (1)
305var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Layout\ResourcesLayoutTests.cs (42)
523var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 634var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 685var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 887var changes = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 914var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 947var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 996var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1078var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1121var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1188var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1222var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1256var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1315var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1366var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1474var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1510var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 1584var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2119var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2147var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2191var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2227var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2256var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2303var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2370var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2444var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2481var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2501var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2560var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2587var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2616var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2648var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2700var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2742var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2840var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2878var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2908var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2935var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 2968var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 3266var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 3326var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 3344var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 3363var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Layout\TerminalDockInitializationTests.cs (2)
24var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 25var processed = Channel.CreateUnbounded<WatchTerminalsUpdate>();
Layout\TerminalDockTelemetryTests.cs (1)
29var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>();
Layout\TerminalDockTests.cs (21)
29var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 64var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 131var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 154var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 212var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 267var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 308var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 342var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 393var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 429var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 462var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 491var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 517var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 562var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 624var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 653var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 682var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 731var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 757var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 797var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 840var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>();
Layout\TerminalDockWindowTrackingTests.cs (4)
29var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 88var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 174var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 177var started = Channel.CreateUnbounded<bool>();
Pages\ConsoleLogsTerminalTests.cs (1)
27var logs = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
Pages\ConsoleLogsTests.cs (40)
39var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 40var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 41var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 89var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 90var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 91var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 174var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 175var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 226var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 227var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 315var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 316var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 367var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 368var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 414var liveConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 415var repositoryConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 416var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 477var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 478var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 518var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 519var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 544var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 545var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 593var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 594var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 642var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 643var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 707var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 708var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 745var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 746var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 800var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 801var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 841var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 842var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 950var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 951var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 952var resourceCommandChannel = Channel.CreateUnbounded<ResourceCommandResponseViewModel>(); 1009var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 1010var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\MetricsTests.cs (2)
383var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 459var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourceOverviewConsoleTests.cs (3)
31var resources = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 32var apiLogs = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 33var cacheLogs = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
Pages\ResourceOverviewEmptyPanelsTests.cs (5)
34var console = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 123var console = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 152var changes = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 153var console = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 239var console = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
Pages\ResourceOverviewEndpointTests.cs (1)
40var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourceOverviewPersistenceTests.cs (1)
34var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourceOverviewRelationshipGraphTests.cs (1)
25var changes = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourceOverviewTypeDisplayNameTests.cs (1)
58var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourcesTests.cs (3)
321var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 642var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 990var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\StructuredLogsTests.cs (4)
417var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 467var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 508var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 551var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\TerminalsTests.cs (2)
585var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 681var updates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\TerminalWindowTests.cs (8)
342var terminals = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 488var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 504var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 528var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 552var firstUpdates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 553var secondUpdates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 589var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 627var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>();
Pages\TracesTests.cs (1)
327var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Shared\TerminalSetupHelpers.cs (1)
26Func<Channel<WatchTerminalsUpdate>>? terminalChannelProvider = null,
tests\Shared\DashboardTelemetryFixture.cs (3)
27public Channel<Activity> ActivityChannel { get; } = Channel.CreateUnbounded<Activity>(); 28public Channel<TestDashboardTelemetryLog> LogChannel { get; } = Channel.CreateUnbounded<TestDashboardTelemetryLog>(); 142public Channel<TestDashboardTelemetryLog> LogChannel { get; } = Channel.CreateUnbounded<TestDashboardTelemetryLog>();
tests\Shared\TestDashboardClient.cs (18)
18private readonly Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? _consoleLogsChannelProvider; 19private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 20private readonly Func<Channel<WatchInteractionsResponseUpdate>>? _interactionChannelProvider; 21private readonly Func<Channel<WatchTerminalsUpdate>>? _terminalChannelProvider; 24private readonly Channel<ResourceCommandResponseViewModel>? _resourceCommandsChannel; 26private readonly Channel<WatchInteractionsRequestUpdate>? _sendInteractionUpdateChannel; 61Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? consoleLogsChannelProvider = null, 62Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 63Func<Channel<WatchInteractionsResponseUpdate>>? interactionChannelProvider = null, 64Channel<ResourceCommandResponseViewModel>? resourceCommandsChannel = null, 66Channel<WatchInteractionsRequestUpdate>? sendInteractionUpdateChannel = null, 70Func<Channel<WatchTerminalsUpdate>>? terminalChannelProvider = null, 171var channel = _consoleLogsChannelProvider(resourceName); 197var channel = _consoleLogsChannelProvider(resourceName); 223var channel = _resourceChannelProvider(); 228async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken) 251var channel = _interactionChannelProvider(); 255async static IAsyncEnumerable<WatchInteractionsResponseUpdate> BuildSubscription(Channel<WatchInteractionsResponseUpdate> channel, [EnumeratorCancellation] CancellationToken cancellationToken)
Aspire.Dashboard.Playwright.Tests (32)
Integration\Playwright\Infrastructure\TestTerminalConnectionResolver.cs (1)
18private readonly Channel<TestTerminalConnection> _connections = Channel.CreateUnbounded<TestTerminalConnection>();
Integration\Playwright\ResourcePaneResponsiveTests.cs (2)
2694private ConcurrentBag<Channel<IReadOnlyList<ResourceViewModelChange>>> _updates = []; 2746var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Integration\Playwright\TerminalDockTests.cs (9)
428private async Task<(Channel<WatchTerminalsUpdate> Updates, Channel<string> Closes)> OpenDockAsync(IPage page) 466private Channel<WatchTerminalsUpdate> _updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 467private Channel<string> _closes = Channel.CreateUnbounded<string>(); 468private readonly Channel<IReadOnlyList<ResourceViewModelChange>> _resourceUpdates = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 500public async Task<(Channel<WatchTerminalsUpdate> Updates, Channel<string> Closes)> StartSessionAsync() 503var updates = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 504var closes = Channel.CreateUnbounded<string>();
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (2)
38private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 46Func<Channel<IReadOnlyList<ResourceViewModelChange>>> resourceChannelProvider) : this(resources)
tests\Shared\TestDashboardClient.cs (18)
18private readonly Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? _consoleLogsChannelProvider; 19private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 20private readonly Func<Channel<WatchInteractionsResponseUpdate>>? _interactionChannelProvider; 21private readonly Func<Channel<WatchTerminalsUpdate>>? _terminalChannelProvider; 24private readonly Channel<ResourceCommandResponseViewModel>? _resourceCommandsChannel; 26private readonly Channel<WatchInteractionsRequestUpdate>? _sendInteractionUpdateChannel; 61Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? consoleLogsChannelProvider = null, 62Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 63Func<Channel<WatchInteractionsResponseUpdate>>? interactionChannelProvider = null, 64Channel<ResourceCommandResponseViewModel>? resourceCommandsChannel = null, 66Channel<WatchInteractionsRequestUpdate>? sendInteractionUpdateChannel = null, 70Func<Channel<WatchTerminalsUpdate>>? terminalChannelProvider = null, 171var channel = _consoleLogsChannelProvider(resourceName); 197var channel = _consoleLogsChannelProvider(resourceName); 223var channel = _resourceChannelProvider(); 228async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken) 251var channel = _interactionChannelProvider(); 255async static IAsyncEnumerable<WatchInteractionsResponseUpdate> BuildSubscription(Channel<WatchInteractionsResponseUpdate> channel, [EnumeratorCancellation] CancellationToken cancellationToken)
Aspire.Dashboard.Tests (53)
ChannelExtensionsTests.cs (6)
58var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 82var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 106var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 107var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>(); 150var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 151var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>();
Integration\DashboardClientAuthTests.cs (1)
171public Channel<ReceivedCallInfo<ApplicationInformationRequest>> ResourceInformationCallsChannel { get; } = Channel.CreateUnbounded<ReceivedCallInfo<ApplicationInformationRequest>>();
Model\DashboardClientTests.cs (17)
43var channel = Channel.CreateUnbounded<TerminalServerFrame>(); 123var channel = Channel.CreateUnbounded<TerminalServerFrame>(); 146var channel = Channel.CreateUnbounded<TerminalServerFrame>(); 170var channel = Channel.CreateUnbounded<TerminalServerFrame>(); 483var updates = Channel.CreateUnbounded<WatchResourcesUpdate>(); 531var resources = Channel.CreateUnbounded<WatchResourcesUpdate>(); 532var firstInteractions = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 533var secondInteractions = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 593var first = Channel.CreateUnbounded<WatchResourcesUpdate>(); 594var second = Channel.CreateUnbounded<WatchResourcesUpdate>(); 595var third = Channel.CreateUnbounded<WatchResourcesUpdate>(); 596var subscriptionsStarted = Channel.CreateUnbounded<int>(); 1102var first = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 1103var second = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 1104var disposed = Channel.CreateUnbounded<bool>(); 1159var channel = Channel.CreateUnbounded<WatchTerminalsUpdate>(); 1210var channel = Channel.CreateUnbounded<WatchTerminalsUpdate>();
ResourceOutgoingPeerResolverTests.cs (5)
285var sourceChannel = Channel.CreateUnbounded<ResourceViewModelChange>(); 286var resultChannel = Channel.CreateUnbounded<(int ChangeCount, long Timestamp)>(); 364var sourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 383var sourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 400var sourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Shared\MockDashboardClient.cs (2)
38private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 46Func<Channel<IReadOnlyList<ResourceViewModelChange>>> resourceChannelProvider) : this(resources)
TelemetryRepositoryTests\LogTests.cs (1)
966var resultChannel = Channel.CreateUnbounded<int>();
tests\Shared\DashboardTelemetryFixture.cs (3)
27public Channel<Activity> ActivityChannel { get; } = Channel.CreateUnbounded<Activity>(); 28public Channel<TestDashboardTelemetryLog> LogChannel { get; } = Channel.CreateUnbounded<TestDashboardTelemetryLog>(); 142public Channel<TestDashboardTelemetryLog> LogChannel { get; } = Channel.CreateUnbounded<TestDashboardTelemetryLog>();
tests\Shared\TestDashboardClient.cs (18)
18private readonly Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? _consoleLogsChannelProvider; 19private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 20private readonly Func<Channel<WatchInteractionsResponseUpdate>>? _interactionChannelProvider; 21private readonly Func<Channel<WatchTerminalsUpdate>>? _terminalChannelProvider; 24private readonly Channel<ResourceCommandResponseViewModel>? _resourceCommandsChannel; 26private readonly Channel<WatchInteractionsRequestUpdate>? _sendInteractionUpdateChannel; 61Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? consoleLogsChannelProvider = null, 62Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 63Func<Channel<WatchInteractionsResponseUpdate>>? interactionChannelProvider = null, 64Channel<ResourceCommandResponseViewModel>? resourceCommandsChannel = null, 66Channel<WatchInteractionsRequestUpdate>? sendInteractionUpdateChannel = null, 70Func<Channel<WatchTerminalsUpdate>>? terminalChannelProvider = null, 171var channel = _consoleLogsChannelProvider(resourceName); 197var channel = _consoleLogsChannelProvider(resourceName); 223var channel = _resourceChannelProvider(); 228async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken) 251var channel = _interactionChannelProvider(); 255async static IAsyncEnumerable<WatchInteractionsResponseUpdate> BuildSubscription(Channel<WatchInteractionsResponseUpdate> channel, [EnumeratorCancellation] CancellationToken cancellationToken)
Aspire.Hosting (27)
ApplicationModel\ResourceLoggerService.cs (3)
240var channel = Channel.CreateUnbounded<LogSubscriber>(); 329var channel = Channel.CreateUnbounded<IReadOnlyList<LogLine>>(); 490var channel = Channel.CreateUnbounded<LogEntry>();
ApplicationModel\ResourceNotificationService.cs (1)
823var channel = Channel.CreateUnbounded<ResourceEvent>();
ApplicationModel\TerminalService.cs (5)
55private ImmutableHashSet<Channel<TerminalUpdate>> _outgoingChannels = []; 307var channel = Channel.CreateBounded<TerminalUpdate>(new BoundedChannelOptions(_dockUpdateBufferCapacity) 369private void Unsubscribe(Channel<TerminalUpdate> channel) 433foreach (var channel in _outgoingChannels) 499foreach (var channel in _outgoingChannels)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1656var channel = Channel.CreateUnbounded<ResourceLogLine>(new UnboundedChannelOptions
Backchannel\BackchannelLoggerProvider.cs (6)
13private readonly Dictionary<int, Channel<BackchannelLogEntry>> _subscribers = []; 23internal (List<BackchannelLogEntry> Snapshot, int SubscriberId, Channel<BackchannelLogEntry> Channel) Subscribe() 25var channel = Channel.CreateUnbounded<BackchannelLogEntry>(); 39if (_subscribers.Remove(subscriberId, out var channel)) 59foreach (var subscriber in _subscribers.Values) 75foreach (var subscriber in _subscribers.Values)
Dashboard\ResourcePublisher.cs (4)
23private ImmutableHashSet<Channel<ResourceSnapshotChange>> _outgoingChannels = []; 49var channel = Channel.CreateUnbounded<ResourceSnapshotChange>( 86ImmutableHashSet<Channel<ResourceSnapshotChange>> channels; 104foreach (var channel in channels)
Dcp\DcpResourceWatcher.cs (1)
65private readonly Channel<LogInformationEntry> _logInformationChannel = Channel.CreateUnbounded<LogInformationEntry>(
Dcp\KubernetesService.cs (1)
309var channel = Channel.CreateUnbounded<(WatchEventType, T)>(new UnboundedChannelOptions
Dcp\ResourceLogSource.cs (1)
48var channel = Channel.CreateUnbounded<ResourceLogEntry>(new UnboundedChannelOptions
Devcontainers\DevcontainerSettingsWriter.cs (1)
27private readonly Channel<PortForwardEntry> _portUpdates = Channel.CreateUnbounded<PortForwardEntry>(new UnboundedChannelOptions
InteractionService.cs (1)
698var channel = Channel.CreateUnbounded<Interaction>();
Pipelines\PipelineActivityReporter.cs (1)
521internal Channel<PublishingActivity> ActivityItemUpdated { get; } = Channel.CreateUnbounded<PublishingActivity>();
src\Shared\ChannelExtensions.cs (1)
26this Channel<T> channel,
Aspire.Hosting.Azure (1)
AzureProvisioningController.cs (1)
127private readonly Channel<QueuedOperation> _operationChannel = Channel.CreateUnbounded<QueuedOperation>(new UnboundedChannelOptions
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
29public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
29public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.DevTunnels (1)
DevTunnelMonitor.cs (1)
35private readonly Channel<Operation> _operations = Channel.CreateUnbounded<Operation>(new()
Aspire.Hosting.DevTunnels.Tests (2)
TestDevTunnelTimeProvider.cs (1)
11public Channel<TimeSpan> ScheduledDelays { get; } = Channel.CreateUnbounded<TimeSpan>();
tests\Shared\TestInteractionService.cs (1)
29public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.Dotnet.Tests (3)
DotnetProjectBuildCoordinatorTests.cs (3)
2114var output = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 2173var firstOutput = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 2306var channel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Aspire.Hosting.Foundry (1)
FoundryExtensions.cs (1)
470var progressChannel = Channel.CreateUnbounded<float>();
Aspire.Hosting.Native.Core (1)
Diagnostics\OperationEventSource.cs (1)
79private readonly Channel<OperationEvent> _channel;
Aspire.Hosting.Native.Core.Tests (3)
SocketConnectionListenerTests.cs (2)
28var connected = Channel.CreateUnbounded<bool>(); 105var connected = Channel.CreateUnbounded<bool>();
TestServices\RecordingBackchannelRpc.cs (1)
13private readonly Channel<bool> _connections = Channel.CreateUnbounded<bool>();
Aspire.Hosting.Native.Server (1)
Api\PipelineApi.cs (1)
68private Channel<NativePublishingActivity> _activities = Channel.CreateBounded<NativePublishingActivity>(8192);
Aspire.Hosting.RemoteHost (1)
src\Shared\ChildProcess.cs (1)
698var lines = Channel.CreateBounded<OutputLine>(new BoundedChannelOptions(256)
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
29public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.Tests (46)
Cli\CliOrphanDetectorTests.cs (2)
146var processRunningChannel = Channel.CreateUnbounded<int>(); 216var processRunningChannel = Channel.CreateUnbounded<int>();
Dashboard\DashboardEventHandlersTests.cs (2)
43var logChannel = Channel.CreateUnbounded<WriteContext>(); 96var logChannel = Channel.CreateUnbounded<WriteContext>();
Dashboard\DashboardServiceTests.cs (3)
45var getConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 1780var logs = Channel.CreateUnbounded<WriteContext>(); 1860var logs = Channel.CreateUnbounded<WriteContext>();
Dcp\DcpExecutorTests.cs (12)
205var endpointEventsProcessed = Channel.CreateUnbounded<bool>(); 537var channel = Channel.CreateUnbounded<string>(); 2428var logStreamPipesChannel = Channel.CreateUnbounded<(string Type, Pipe Pipe)>(); 3019var followStdErrPipeChannel = Channel.CreateUnbounded<Pipe>(); 3497var changes = Channel.CreateUnbounded<OnResourceChangedContext>(); 3565var changes = Channel.CreateUnbounded<OnResourceChangedContext>(); 4373private static async Task<LogStreamPipes> GetStreamPipesAsync(Channel<(string Type, Pipe Pipe)> logStreamPipesChannel) 4958var allocatedPortChannel = Channel.CreateUnbounded<int>(); 4959var connectionStringAvailableChannel = Channel.CreateUnbounded<IResource>(); 5038var connectionStringAvailableChannel = Channel.CreateUnbounded<IResource>(); 5115var resolvedUrlChannel = Channel.CreateUnbounded<string?>(); 5162var resolvedUrlChannel = Channel.CreateUnbounded<string?>();
Dcp\KubernetesServiceTests.cs (1)
190var requestsStarted = Channel.CreateUnbounded<string>();
Dcp\TestKubernetesService.cs (7)
39private readonly List<Channel<(WatchEventType, CustomResource)>> _watchChannels = []; 144foreach (var c in _watchChannels) 171foreach (var c in _watchChannels) 189foreach (var c in _watchChannels) 220foreach (var c in _watchChannels) 319var chan = Channel.CreateUnbounded<(WatchEventType, CustomResource)>(); 488foreach (var c in _watchChannels)
DistributedApplicationTests.cs (1)
1287var beforeResourceStartedEvents = Channel.CreateUnbounded<BeforeResourceStartedEvent>();
Health\ResourceHealthCheckServiceTests.cs (2)
148var channel = Channel.CreateUnbounded<ResourceReadyEvent>(); 293var channel = Channel.CreateUnbounded<DateTimeOffset>();
InteractionServiceTests.cs (3)
126var updates = Channel.CreateUnbounded<Interaction>(); 1003var updates = Channel.CreateUnbounded<Interaction>(); 1056var updates = Channel.CreateUnbounded<Interaction>();
ResourceCommandServiceTests.cs (2)
138var commandResourcesChannel = Channel.CreateUnbounded<string>(); 175var commandResourcesChannel = Channel.CreateUnbounded<string>();
ResourceLoggerServiceTests.cs (3)
263var consoleLogsChannel0 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 267var consoleLogsChannel1 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 482var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Terminals\TerminalServiceTests.cs (7)
59var channel = Assert.Single(GetOutgoingChannels(service)); 140var channel = Assert.Single(GetOutgoingChannels(service)); 416var channel = Assert.Single(GetOutgoingChannels(service)); 451var channel = Assert.Single(GetOutgoingChannels(service)); 575var channel = Assert.Single(GetOutgoingChannels(service)); 1123private static ImmutableHashSet<Channel<TerminalUpdate>> GetOutgoingChannels(TerminalService service) 1128return (ImmutableHashSet<Channel<TerminalUpdate>>)field.GetValue(service)!;
tests\Shared\TestInteractionService.cs (1)
29public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.TestUtilities (5)
Utils\Grpc\TestAsyncStreamReader.cs (1)
11private readonly Channel<T> _channel;
Utils\Grpc\TestServerStreamWriter.cs (1)
12private readonly Channel<T> _channel;
Utils\TestConsoleLogsService.cs (3)
12private readonly Func<string, Channel<IReadOnlyList<LogEntry>>>? _getConsoleLogsChannel; 14public TestConsoleLogsService(Func<string, Channel<IReadOnlyList<LogEntry>>>? getConsoleLogsChannel = null) 26var channel = _getConsoleLogsChannel(resourceName);
Aspire.TerminalHost (1)
DcpUpstreamAdapter.cs (1)
63private readonly Channel<ReadOnlyMemory<byte>> _outputChannel;
Aspire.Tray.Tests (5)
Helpers\TestAppHostClient.cs (5)
12private readonly Channel<AppHostSnapshot> _snapshots = Channel.CreateUnbounded<AppHostSnapshot>(); 13private readonly Channel<AppHostId> _started = Channel.CreateUnbounded<AppHostId>(); 14private readonly Channel<AppHostId> _finished = Channel.CreateUnbounded<AppHostId>(); 16private readonly Channel<string> _starting = Channel.CreateUnbounded<string>(); 17private readonly Channel<string> _finishedStarts = Channel.CreateUnbounded<string>();
dotnet-aot (1)
parent\dotnet\Commands\Test\MTP\TestApplicationActionQueue.cs (1)
13private readonly Channel<ParallelizableTestModuleGroupWithSequentialInnerModules> _channel;
dotnet-watch (1)
UI\SpectreBuildParametersSelectionPrompt.cs (1)
115private readonly Channel<ConsoleKeyInfo> _channel = Channel.CreateUnbounded<ConsoleKeyInfo>();
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new() 336static (obj, cancellationToken) => ((Channel<TItem>)obj!).Writer.TryComplete(new OperationCanceledException(cancellationToken)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http2\Http2FrameWriter.cs (2)
23/// Since a connection has multiple streams, this class maintains a <see cref="Channel{T}"/> (i.e. bounded queue) 86private readonly Channel<Http2OutputProducer> _channel;
Internal\WebTransport\WebTransportSession.cs (1)
26private readonly Channel<WebTransportStream> _pendingStreams;
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
26private readonly Channel<ConnectionContext> _acceptedQueue;
Microsoft.AspNetCore.SignalR.Client.Core (5)
HubConnection.cs (1)
1928var invocationMessageChannel = Channel.CreateUnbounded<InvocationMessage>(_receiveLoopOptions);
HubConnectionExtensions.StreamAsChannelAsync.cs (2)
277var outputChannel = Channel.CreateUnbounded<TResult>(); 287private static async Task RunChannel<TResult>(ChannelReader<object?> inputChannel, Channel<TResult> outputChannel)
Internal\InvocationRequest.cs (1)
88private readonly Channel<object?> _channel = Channel.CreateUnbounded<object?>();
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
34private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest });
Microsoft.AspNetCore.SignalR.Core (3)
Internal\ChannelBasedSemaphore.cs (1)
13private readonly Channel<int> _channel;
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
34private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest });
StreamTracker.cs (1)
140private readonly Channel<T?> _channel;
Microsoft.Build.Tasks.Core (2)
AssemblyDependency\Node\RarNodeBuildEngine.cs (2)
46private readonly Channel<BuildEventArgs> _eventChannel; 47private readonly Channel<int> _eventCountChannel;
Microsoft.CodeAnalysis.Analyzers (6)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (3)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (3)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.CodeStyle (6)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (3)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.ResxSourceGenerator (6)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (3)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.CodeAnalysis.Workspaces (7)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (4)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new() 336static (obj, cancellationToken) => ((Channel<TItem>)obj!).Writer.TryComplete(new OperationCanceledException(cancellationToken)),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Microsoft.DotNet.HotReload.Utils.Generator (1)
Util\FSWGen.cs (1)
14Channel<System.IO.FileSystemEventArgs>? _channel;
Microsoft.DotNet.HotReload.Watch (1)
Aspire\AspireServiceFactory.cs (1)
129var outputChannel = Channel.CreateUnbounded<OutputLine>(s_outputChannelOptions);
Microsoft.Extensions.AI (1)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
134var updates = Channel.CreateBounded<ChatResponseUpdate>(1);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
266var channel = Channel.CreateUnbounded<ServiceEndpointResolverResult>();
Microsoft.ML.Data (3)
Transforms\RowShufflingTransformer.cs (3)
490private readonly Channel<int> _toProduceChannel; 491private readonly Channel<int> _toConsumeChannel; 555public static void PostAssert<T>(Channel<T> target, T item)
Microsoft.ML.Sweeper (1)
AsyncSweeper.cs (1)
171private readonly Channel<ParameterSetWithId> _paramChannel;
Roslyn.Diagnostics.Analyzers (6)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (3)
253var channel = Channel.CreateUnbounded<TItem>(); 307/// cref="Channel{T}"/>, which will then then manage the rules and behaviors around the routines. Importantly, the 326var channel = Channel.CreateUnbounded<TItem>(new()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (3)
44var channel = Channel.CreateBounded<T>(1024); 70public static void CompletesChannel<T>(this Task task, Channel<T> channel) 75static (task, channel) => ((Channel<T>)channel!).Writer.Complete(task.Exception),
Stress.ApiService (2)
ProducerConsumer.cs (1)
20private readonly Channel<Data> _channel = Channel.CreateUnbounded<Data>();
Program.cs (1)
338var channel = Channel.CreateUnbounded<string>();
System.Diagnostics.Process (1)
System\Diagnostics\Process.Multiplexing.cs (1)
541Channel<ProcessOutputLine> channel = Channel.CreateBounded<ProcessOutputLine>(0);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
1005private readonly Channel<WatcherEvent> _eventQueue;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
56private readonly Channel<WriteQueueEntry> _writeChannel;
System.Net.Quic (2)
System\Net\Quic\QuicConnection.cs (1)
150private readonly Channel<QuicStream> _acceptQueue = Channel.CreateUnbounded<QuicStream>(new UnboundedChannelOptions()
System\Net\Quic\QuicListener.cs (1)
101private readonly Channel<object> _acceptQueue;
System.Threading.Channels (7)
System\Threading\Channels\Channel.cs (5)
11public static Channel<T> CreateUnbounded<T>() => 19public static Channel<T> CreateUnbounded<T>(UnboundedChannelOptions options) 40public static Channel<T> CreateBounded<T>(int capacity) => 50public static Channel<T> CreateBounded<T>(BoundedChannelOptions options) => 59public static Channel<T> CreateBounded<T>(BoundedChannelOptions options, Action<T>? itemDropped)
System\Threading\Channels\Channel.netcoreapp.cs (2)
17public static Channel<T> CreateUnboundedPrioritized<T>() => 29public static Channel<T> CreateUnboundedPrioritized<T>(UnboundedPrioritizedChannelOptions<T> options)