252 references to Channel
aspire (1)
Interaction\ExtensionInteractionService.cs (1)
40_extensionTaskChannel = Channel.CreateUnbounded<Func<Task>>(new UnboundedChannelOptions
Aspire.Cli.Tests (8)
Hosting\CliOrphanDetectorTests.cs (8)
39var stopSignalChannel = Channel.CreateUnbounded<bool>(); 65var stopSignalChannel = Channel.CreateUnbounded<bool>(); 86var stopSignalChannel = Channel.CreateUnbounded<bool>(); 110var stopSignalChannel = Channel.CreateUnbounded<bool>(); 111var processRunningChannel = Channel.CreateUnbounded<int>(); 153var stopSignalChannel = Channel.CreateUnbounded<bool>(); 176var stopSignalChannel = Channel.CreateUnbounded<bool>(); 177var processRunningChannel = Channel.CreateUnbounded<int>();
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 (6)
Components\Pages\ConsoleLogs.razor.cs (1)
144private readonly Channel<LogEntryToWrite> _logEntryChannel = Channel.CreateUnbounded<LogEntryToWrite>(new UnboundedChannelOptions
ServiceClient\DashboardClient.cs (4)
51private readonly Channel<WatchInteractionsRequestUpdate> _incomingInteractionChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 575var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>( 620var channel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>( 666var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(
Telemetry\DashboardTelemetrySender.cs (1)
38_channel = Channel.CreateBounded<(OperationContext, Func<HttpClient, Func<OperationContextProperty, object>, Task>)>(channelOptions);
Aspire.Dashboard.Components.Tests (46)
Interactions\InteractionsProviderTests.cs (13)
58var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 85var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 132var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 183var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 184var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 242var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 243var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 305var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 306var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 378var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 379var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 456var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 457var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>();
Pages\ConsoleLogsTests.cs (26)
47var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 48var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 49var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 97var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 98var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 99var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 158consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 185var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 186var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 291var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 292var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 339var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 340var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 388var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 389var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 437var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 438var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 494var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 495var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 555var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 556var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 619var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 620var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 621var resourceCommandChannel = Channel.CreateUnbounded<ResourceCommandResponseViewModel>(); 678var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 679var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourcesTests.cs (5)
37var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 136var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 188var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 224resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 319var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Shared\ResourceSetupHelpers.cs (1)
121context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
tests\Shared\TestDashboardTelemetrySender.cs (1)
12public Channel<OperationContext> ContextChannel { get; } = Channel.CreateUnbounded<OperationContext>();
Aspire.Dashboard.Tests (13)
ChannelExtensionsTests.cs (6)
19var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 43var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 67var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 68var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>(); 111var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 112var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>();
Integration\DashboardClientAuthTests.cs (1)
156public Channel<ReceivedCallInfo<ApplicationInformationRequest>> ResourceInformationCallsChannel { get; } = Channel.CreateUnbounded<ReceivedCallInfo<ApplicationInformationRequest>>();
Model\AIAssistant\AIContextProviderTests.cs (1)
81var changeChannel = Channel.CreateUnbounded<AIContext?>();
Model\AIAssistant\AssistantChatDataContextTests.cs (1)
179var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
ResourceOutgoingPeerResolverTests.cs (2)
131var sourceChannel = Channel.CreateUnbounded<ResourceViewModelChange>(); 132var resultChannel = Channel.CreateUnbounded<int>();
TelemetryRepositoryTests\LogTests.cs (1)
712var resultChannel = Channel.CreateUnbounded<int>();
tests\Shared\TestDashboardTelemetrySender.cs (1)
12public Channel<OperationContext> ContextChannel { get; } = Channel.CreateUnbounded<OperationContext>();
Aspire.Hosting (11)
ApplicationModel\ResourceLoggerService.cs (3)
223var channel = Channel.CreateUnbounded<LogSubscriber>(); 297var channel = Channel.CreateUnbounded<IReadOnlyList<LogLine>>(); 419var channel = Channel.CreateUnbounded<LogEntry>();
ApplicationModel\ResourceNotificationService.cs (1)
526var channel = Channel.CreateUnbounded<ResourceEvent>();
Backchannel\BackchannelLoggerProvider.cs (1)
12private readonly Channel<BackchannelLogEntry> _channel = Channel.CreateUnbounded<BackchannelLogEntry>();
Dashboard\ResourcePublisher.cs (1)
49var channel = Channel.CreateUnbounded<ResourceSnapshotChange>(
Dcp\DcpExecutor.cs (1)
91private readonly Channel<LogInformationEntry> _logInformationChannel = Channel.CreateUnbounded<LogInformationEntry>(
Dcp\ResourceLogSource.cs (1)
28var channel = Channel.CreateUnbounded<LogEntry>(new UnboundedChannelOptions
Devcontainers\DevcontainerSettingsWriter.cs (1)
27private readonly Channel<PortForwardEntry> _portUpdates = Channel.CreateUnbounded<PortForwardEntry>(new UnboundedChannelOptions
InteractionService.cs (1)
429var channel = Channel.CreateUnbounded<Interaction>();
Publishing\PublishingActivityReporter.cs (1)
433internal Channel<PublishingActivity> ActivityItemUpdated { get; } = Channel.CreateUnbounded<PublishingActivity>();
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
14public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Aspire.Hosting.Tests (19)
Dashboard\DashboardLifecycleHookTests.cs (1)
37var logChannel = Channel.CreateUnbounded<WriteContext>();
Dashboard\DashboardServiceTests.cs (1)
34var getConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Dcp\DcpExecutorTests.cs (2)
73var channel = Channel.CreateUnbounded<string>(); 570var logStreamPipesChannel = Channel.CreateUnbounded<(string Type, Pipe Pipe)>();
Dcp\TestKubernetesService.cs (1)
134var chan = Channel.CreateUnbounded<(WatchEventType, CustomResource)>();
DistributedApplicationTests.cs (1)
641var beforeResourceStartedEvents = Channel.CreateUnbounded<BeforeResourceStartedEvent>();
Health\ResourceHealthCheckServiceTests.cs (2)
147var channel = Channel.CreateUnbounded<ResourceReadyEvent>(); 292var channel = Channel.CreateUnbounded<DateTimeOffset>();
InteractionServiceTests.cs (3)
123var updates = Channel.CreateUnbounded<Interaction>(); 717var updates = Channel.CreateUnbounded<Interaction>(); 770var updates = Channel.CreateUnbounded<Interaction>();
ResourceCommandServiceTests.cs (3)
80var commandResourcesChannel = Channel.CreateUnbounded<string>(); 118var commandResourcesChannel = Channel.CreateUnbounded<string>(); 147commandResourcesChannel = Channel.CreateUnbounded<string>();
ResourceLoggerServiceTests.cs (2)
261var consoleLogsChannel0 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 265var consoleLogsChannel1 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
tests\Shared\TestInteractionService.cs (1)
14public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
Utils\Grpc\TestAsyncStreamReader.cs (1)
18_channel = Channel.CreateUnbounded<T>();
Utils\Grpc\TestServerStreamWriter.cs (1)
18_channel = Channel.CreateUnbounded<T>();
ClientSample (4)
UploadSample.cs (4)
44var channel = Channel.CreateUnbounded<string>(); 60var channel_one = Channel.CreateBounded<int>(2); 61var channel_two = Channel.CreateBounded<int>(2); 85var channel = Channel.CreateUnbounded<string>();
GenerateDocumentationAndConfigFiles (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
45_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>(); 990public readonly Channel<ConnectionContext> ToServerAcceptQueue = Channel.CreateUnbounded<ConnectionContext>(new UnboundedChannelOptions 996public readonly Channel<Http3ControlStream> ToClientAcceptQueue = Channel.CreateUnbounded<Http3ControlStream>(new UnboundedChannelOptions
TestTransport\InMemoryTransportFactory.cs (1)
15private readonly Channel<ConnectionContext> _acceptQueue = Channel.CreateUnbounded<ConnectionContext>();
Metrics (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Metrics.Legacy (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
33_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
33_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.Http.Connections.Tests (2)
TestWebSocketConnectionFeature.cs (2)
40var clientToServer = Channel.CreateUnbounded<WebSocketMessage>(); 41var serverToClient = Channel.CreateUnbounded<WebSocketMessage>();
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http2\Http2FrameWriter.cs (1)
153_channel = Channel.CreateBounded<Http2OutputProducer>(new BoundedChannelOptions(maxStreamsPerConnection)
Internal\WebTransport\WebTransportSession.cs (1)
52_pendingStreams = Channel.CreateUnbounded<WebTransportStream>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
45_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>(); 990public readonly Channel<ConnectionContext> ToServerAcceptQueue = Channel.CreateUnbounded<ConnectionContext>(new UnboundedChannelOptions 996public readonly Channel<Http3ControlStream> ToClientAcceptQueue = Channel.CreateUnbounded<Http3ControlStream>(new UnboundedChannelOptions
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeConnectionListener.cs (1)
52_acceptedQueue = Channel.CreateBounded<ConnectionContext>(new BoundedChannelOptions(capacity: 1));
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (1)
1611var invocationMessageChannel = Channel.CreateUnbounded<InvocationMessage>(_receiveLoopOptions);
HubConnectionExtensions.StreamAsChannelAsync.cs (1)
277var outputChannel = Channel.CreateUnbounded<TResult>();
Internal\InvocationRequest.cs (1)
81private readonly Channel<object?> _channel = Channel.CreateUnbounded<object?>();
src\SignalR\common\Shared\MessageBuffer.cs (1)
32private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest });
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (12)
HubConnectionTests.cs (2)
799var channelWriter = Channel.CreateBounded<string>(5); 2925private readonly Channel<(SendOrPostCallback, object)> _taskQueue = Channel.CreateUnbounded<(SendOrPostCallback, object)>();
HubConnectionTests.Tracing.cs (7)
35var serverChannel = Channel.CreateUnbounded<Activity>(); 36var clientChannel = Channel.CreateUnbounded<Activity>(); 229var serverChannel = Channel.CreateUnbounded<Activity>(); 374var serverChannel = Channel.CreateUnbounded<Activity>(); 477var serverChannel = Channel.CreateUnbounded<Activity>(); 573var serverChannel = Channel.CreateUnbounded<Activity>(); 663var serverChannel = Channel.CreateUnbounded<Activity>();
Hubs.cs (3)
227var channel = Channel.CreateUnbounded<int>(); 252var output = Channel.CreateUnbounded<string>(); 276var output = Channel.CreateUnbounded<int>();
Microsoft.AspNetCore.SignalR.Client.Tests (16)
HubConnectionTests.cs (8)
438var channel = Channel.CreateUnbounded<int>(); 478var channel = Channel.CreateUnbounded<int>(); 509var channel = Channel.CreateUnbounded<object>(); 554var channel = Channel.CreateUnbounded<int>(); 586var channel = Channel.CreateUnbounded<int>(); 611var channel = Channel.CreateUnbounded<int>(); 645var channel = Channel.CreateUnbounded<int>(); 678var channel = Channel.CreateUnbounded<int>();
HubServerProxyGeneratorTests.cs (8)
174var channel = Channel.CreateUnbounded<object>(); 175var channelForEnumerable = Channel.CreateUnbounded<int>(); 216var channel = Channel.CreateUnbounded<int>(); 218var channelForEnumerable = Channel.CreateUnbounded<int>(); 257var argChannel = Channel.CreateUnbounded<float>(); 258var retChannel = Channel.CreateUnbounded<object>(); 260var argChannelForEnumerable = Channel.CreateUnbounded<float>(); 262var retChannelForEnumerable = Channel.CreateUnbounded<int>();
Microsoft.AspNetCore.SignalR.Core (3)
Internal\ChannelBasedSemaphore.cs (1)
17_channel = Channel.CreateBounded<int>(maxCapacity);
src\SignalR\common\Shared\MessageBuffer.cs (1)
32private readonly Channel<long> _waitForAck = Channel.CreateBounded<long>(new BoundedChannelOptions(1) { FullMode = BoundedChannelFullMode.DropOldest });
StreamTracker.cs (1)
112_channel = Channel.CreateBounded<T?>(streamBufferCapacity);
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
DefaultHubDispatcherBenchmark.cs (4)
136var channel = Channel.CreateUnbounded<int>(); 144var channel = Channel.CreateUnbounded<int>(); 152var channel = Channel.CreateUnbounded<int>(); 160var channel = Channel.CreateUnbounded<int>();
Microsoft.AspNetCore.SignalR.Tests (27)
HubConnectionHandlerTests.Activity.cs (8)
22var serverChannel = Channel.CreateUnbounded<Activity>(); 97var serverChannel = Channel.CreateUnbounded<Activity>(); 169var serverChannel = Channel.CreateUnbounded<Activity>(); 228var serverChannel = Channel.CreateUnbounded<Activity>(); 301var serverChannel = Channel.CreateUnbounded<Activity>(); 348var serverChannel = Channel.CreateUnbounded<Activity>(); 400var serverChannel = Channel.CreateUnbounded<Activity>(); 451var serverChannel = Channel.CreateUnbounded<Activity>();
HubConnectionHandlerTests.cs (1)
4749var channel = Channel.CreateBounded<int>(10);
HubConnectionHandlerTestUtils\Hubs.cs (14)
293var channel = Channel.CreateUnbounded<string>(); 704var channel = Channel.CreateUnbounded<string>(); 773return Channel.CreateUnbounded<string>().Reader; 778var channel = Channel.CreateUnbounded<int>(); 785var channel = Channel.CreateUnbounded<int>(); 792var channel = Channel.CreateUnbounded<int>(); 814Channel<string> output = Channel.CreateUnbounded<string>(); 1030return Channel.CreateUnbounded<string>().Reader; 1035var channel = Channel.CreateBounded<int>(10); 1050var channel = Channel.CreateBounded<int>(10); 1065var channel = Channel.CreateBounded<int>(10); 1080var channel = Channel.CreateBounded<int>(10); 1095var channel = Channel.CreateBounded<int>(10); 1131var channel = Channel.CreateBounded<int>(10);
NativeAotTests.cs (4)
79var channel = Channel.CreateBounded<string>(10); 112var channelShorts = Channel.CreateBounded<short>(10); 249Channel<string> output = Channel.CreateUnbounded<string>(); 282Channel<char> output = Channel.CreateUnbounded<char>();
Microsoft.CodeAnalysis.Analyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.CodeStyle (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.CodeAnalysis.Threading.Package (2)
ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
Microsoft.CodeAnalysis.Workspaces (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
Microsoft.Extensions.AI (1)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
134var updates = Channel.CreateBounded<ChatResponseUpdate>(1);
Microsoft.ML.Data (2)
Transforms\RowShufflingTransformer.cs (2)
544_toConsumeChannel = Channel.CreateUnbounded<int>(new UnboundedChannelOptions { SingleWriter = true }); 545_toProduceChannel = Channel.CreateUnbounded<int>(new UnboundedChannelOptions { SingleWriter = true });
Microsoft.ML.Sweeper (1)
AsyncSweeper.cs (1)
211_paramChannel = Channel.CreateUnbounded<ParameterSetWithId>(
Roslyn.Diagnostics.Analyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
SignalR.Client.FunctionalTestApp (3)
TestHub.cs (3)
62var channel = Channel.CreateUnbounded<string>(); 72var channel = Channel.CreateUnbounded<string>(); 100var channel = Channel.CreateUnbounded<int>();
SignalRSamples (4)
Hubs\Streaming.cs (1)
32var channel = Channel.CreateUnbounded<int>();
Hubs\UploadHub.cs (1)
65var output = Channel.CreateUnbounded<string>();
ObservableExtensions.cs (2)
26var channel = maxBufferSize != null ? Channel.CreateBounded<T>(maxBufferSize.Value) : Channel.CreateUnbounded<T>();
Stress.ApiService (2)
ProducerConsumer.cs (1)
20private readonly Channel<Data> _channel = Channel.CreateUnbounded<Data>();
Program.cs (1)
238var channel = Channel.CreateUnbounded<string>();
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
150_writeChannel = Channel.CreateUnbounded<WriteQueueEntry>(s_channelOptions);
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)
143_acceptQueue = Channel.CreateUnbounded<object>();
Test.Utilities (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);
TestDiscoveryWorker (1)
Program.cs (1)
117_channel = Channel.CreateUnbounded<string>();
Text.Analyzers (3)
src\Dependencies\Threading\ProducerConsumer.cs (2)
253var channel = Channel.CreateUnbounded<TItem>(); 326var channel = Channel.CreateUnbounded<TItem>(new()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
50var channel = Channel.CreateBounded<T>(1024);