137 references to Channel
Aspire.Components.Common.Tests (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 (2)
ResourceService\DashboardClient.cs (2)
437var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>( 486var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(
Aspire.Dashboard.Components.Tests (4)
Pages\ConsoleLogsTests.cs (4)
37var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 38var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 96var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 97var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Aspire.Dashboard.Tests (10)
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)
161public Channel<ReceivedCallInfo<ApplicationInformationRequest>> ApplicationInformationCallsChannel { get; } = Channel.CreateUnbounded<ReceivedCallInfo<ApplicationInformationRequest>>();
ResourceOutgoingPeerResolverTests.cs (2)
123var sourceChannel = Channel.CreateUnbounded<ResourceViewModelChange>(); 124var resultChannel = Channel.CreateUnbounded<int>();
TelemetryRepositoryTests\LogTests.cs (1)
713var resultChannel = Channel.CreateUnbounded<int>();
Aspire.Hosting (7)
ApplicationModel\ResourceLoggerService.cs (3)
170var channel = Channel.CreateUnbounded<IReadOnlyList<LogLine>>(); 221var channel = Channel.CreateUnbounded<LogSubscriber>(); 365var channel = Channel.CreateUnbounded<LogEntry>();
ApplicationModel\ResourceNotificationService.cs (1)
310var channel = Channel.CreateUnbounded<ResourceEvent>();
Dashboard\ResourcePublisher.cs (1)
49var channel = Channel.CreateUnbounded<ResourceSnapshotChange>(
Dcp\ApplicationExecutor.cs (1)
117private readonly Channel<LogInformationEntry> _logInformationChannel = Channel.CreateUnbounded<LogInformationEntry>(
Dcp\ResourceLogSource.cs (1)
28var channel = Channel.CreateUnbounded<LogEntry>(new UnboundedChannelOptions
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (1)
38var logChannel = Channel.CreateUnbounded<WriteContext>();
Dcp\ApplicationExecutorTests.cs (1)
445var logStreamPipesChannel = Channel.CreateUnbounded<(string Type, Pipe Pipe)>();
Dcp\TestKubernetesService.cs (1)
106var chan = Channel.CreateUnbounded<(WatchEventType, CustomResource)>();
Health\ResourceHealthCheckServiceTests.cs (1)
134var channel = Channel.CreateUnbounded<DateTimeOffset>();
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>();
InMemory.FunctionalTests (4)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (3)
46_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>(); 991public readonly Channel<ConnectionContext> ToServerAcceptQueue = Channel.CreateUnbounded<ConnectionContext>(new UnboundedChannelOptions 997public readonly Channel<Http3ControlStream> ToClientAcceptQueue = Channel.CreateUnbounded<Http3ControlStream>(new UnboundedChannelOptions
TestTransport\InMemoryTransportFactory.cs (1)
15private readonly Channel<ConnectionContext> _acceptQueue = Channel.CreateUnbounded<ConnectionContext>();
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
27_counters[item] = Channel.CreateUnbounded<double>();
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
27_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)
46_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>(); 991public readonly Channel<ConnectionContext> ToServerAcceptQueue = Channel.CreateUnbounded<ConnectionContext>(new UnboundedChannelOptions 997public 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)
1601var 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)
4731var 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.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
59var channel = Channel.CreateBounded<T>(1024);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
283var channel = Channel.CreateUnbounded<TItem>(new()
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IAsyncEnumerableExtensions.cs (1)
59var channel = Channel.CreateBounded<T>(1024);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
283var channel = Channel.CreateUnbounded<TItem>(new()
Microsoft.Extensions.AI (1)
ChatCompletion\AnonymousDelegatingChatClient.cs (1)
130var updates = Channel.CreateBounded<StreamingChatCompletionUpdate>(1);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
264var channel = Channel.CreateUnbounded<ServiceEndpointResolverResult>();
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>(
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)
135var channel = Channel.CreateUnbounded<string>();
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
149_writeChannel = Channel.CreateUnbounded<WriteQueueEntry>(s_channelOptions);
System.Net.Quic (2)
System\Net\Quic\QuicConnection.cs (1)
149private readonly Channel<QuicStream> _acceptQueue = Channel.CreateUnbounded<QuicStream>(new UnboundedChannelOptions()
System\Net\Quic\QuicListener.cs (1)
141_acceptQueue = Channel.CreateUnbounded<object>();
TestDiscoveryWorker (1)
Program.cs (1)
113_channel = Channel.CreateUnbounded<string>();