163 references to CreateUnbounded
Aspire.Cli.Tests (3)
Hosting\CliOrphanDetectorTests.cs (3)
39var stopSignalChannel = Channel.CreateUnbounded<bool>(); 60var stopSignalChannel = Channel.CreateUnbounded<bool>(); 61var processRunningChannel = Channel.CreateUnbounded<int>();
Aspire.Components.Common.TestUtilities (1)
ActivityNotifier.cs (1)
16private readonly Channel<Activity> _activityChannel = Channel.CreateUnbounded<Activity>();
Aspire.Dashboard (1)
ServiceClient\DashboardClient.cs (1)
51private readonly Channel<WatchInteractionsRequestUpdate> _incomingInteractionChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>();
Aspire.Dashboard.Components.Tests (38)
Interactions\InteractionsProviderTests.cs (7)
53var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 77var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 121var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 169var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 170var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>(); 225var interactionsChannel = Channel.CreateUnbounded<WatchInteractionsResponseUpdate>(); 226var sendInteractionUpdatesChannel = Channel.CreateUnbounded<WatchInteractionsRequestUpdate>();
Pages\ConsoleLogsTests.cs (24)
45var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 46var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 47var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 95var subscribedResourceNamesChannel = Channel.CreateUnbounded<string>(); 96var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 97var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 156consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 182var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 183var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 230var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 231var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 279var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 280var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 328var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 329var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 385var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 386var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 446var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 447var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 510var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 511var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 512var resourceCommandChannel = Channel.CreateUnbounded<ResourceCommandResponseViewModel>(); 569var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 570var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\ResourcesTests.cs (5)
36var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 135var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 187var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 223resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>); 318var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Shared\ResourceSetupHelpers.cs (1)
116context.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 (11)
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>> ApplicationInformationCallsChannel { get; } = Channel.CreateUnbounded<ReceivedCallInfo<ApplicationInformationRequest>>();
ResourceOutgoingPeerResolverTests.cs (2)
125var sourceChannel = Channel.CreateUnbounded<ResourceViewModelChange>(); 126var 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 (7)
ApplicationModel\InteractionService.cs (1)
220var channel = Channel.CreateUnbounded<Interaction>();
ApplicationModel\ResourceLoggerService.cs (3)
223var channel = Channel.CreateUnbounded<LogSubscriber>(); 297var channel = Channel.CreateUnbounded<IReadOnlyList<LogLine>>(); 419var channel = Channel.CreateUnbounded<LogEntry>();
ApplicationModel\ResourceNotificationService.cs (1)
460var channel = Channel.CreateUnbounded<ResourceEvent>();
Backchannel\BackchannelLoggerProvider.cs (1)
12private readonly Channel<BackchannelLogEntry> _channel = Channel.CreateUnbounded<BackchannelLogEntry>();
Publishing\PublishingActivityProgressReporter.cs (1)
710internal Channel<PublishingActivity> ActivityItemUpdated { get; } = Channel.CreateUnbounded<PublishingActivity>();
Aspire.Hosting.Tests (16)
Dashboard\DashboardLifecycleHookTests.cs (1)
39var logChannel = Channel.CreateUnbounded<WriteContext>();
Dashboard\DashboardServiceTests.cs (1)
35var getConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Dcp\DcpExecutorTests.cs (2)
71var channel = Channel.CreateUnbounded<string>(); 568var logStreamPipesChannel = Channel.CreateUnbounded<(string Type, Pipe Pipe)>();
Dcp\TestKubernetesService.cs (1)
134var chan = Channel.CreateUnbounded<(WatchEventType, CustomResource)>();
DistributedApplicationTests.cs (1)
619var beforeResourceStartedEvents = Channel.CreateUnbounded<BeforeResourceStartedEvent>();
Health\ResourceHealthCheckServiceTests.cs (2)
151var channel = Channel.CreateUnbounded<ResourceReadyEvent>(); 294var channel = Channel.CreateUnbounded<DateTimeOffset>();
InteractionServiceTests.cs (1)
122var updates = Channel.CreateUnbounded<Interaction>();
ResourceCommandServiceTests.cs (2)
59var commandResourcesChannel = Channel.CreateUnbounded<string>(); 88commandResourcesChannel = Channel.CreateUnbounded<string>();
ResourceLoggerServiceTests.cs (2)
262var consoleLogsChannel0 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 266var consoleLogsChannel1 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Utils\Grpc\TestAsyncStreamReader.cs (1)
18_channel = Channel.CreateUnbounded<T>();
Utils\Grpc\TestServerStreamWriter.cs (1)
18_channel = Channel.CreateUnbounded<T>();
VersionChecking\VersionCheckServiceTests.cs (1)
240public Channel<InteractionData> Interactions { get; } = Channel.CreateUnbounded<InteractionData>();
ClientSample (2)
UploadSample.cs (2)
44var channel = Channel.CreateUnbounded<string>(); 85var channel = Channel.CreateUnbounded<string>();
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
InMemory.FunctionalTests (2)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
45_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>();
TestTransport\InMemoryTransportFactory.cs (1)
15private readonly Channel<ConnectionContext> _acceptQueue = Channel.CreateUnbounded<ConnectionContext>();
Metrics (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Metrics.Legacy (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
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 (1)
Internal\WebTransport\WebTransportSession.cs (1)
52_pendingStreams = Channel.CreateUnbounded<WebTransportStream>();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
45_serverReceivedSettings = Channel.CreateUnbounded<KeyValuePair<Http3SettingType, long>>();
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnectionExtensions.StreamAsChannelAsync.cs (1)
277var outputChannel = Channel.CreateUnbounded<TResult>();
Internal\InvocationRequest.cs (1)
81private readonly Channel<object?> _channel = Channel.CreateUnbounded<object?>();
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (11)
HubConnectionTests.cs (1)
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.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 (18)
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>();
HubConnectionHandlerTestUtils\Hubs.cs (8)
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;
NativeAotTests.cs (2)
249Channel<string> output = Channel.CreateUnbounded<string>(); 282Channel<char> output = Channel.CreateUnbounded<char>();
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
264var channel = Channel.CreateUnbounded<ServiceEndpointResolverResult>();
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
SignalR.Client.FunctionalTestApp (3)
TestHub.cs (3)
62var channel = Channel.CreateUnbounded<string>(); 72var channel = Channel.CreateUnbounded<string>(); 100var channel = Channel.CreateUnbounded<int>();
SignalRSamples (3)
Hubs\Streaming.cs (1)
32var channel = Channel.CreateUnbounded<int>();
Hubs\UploadHub.cs (1)
65var output = Channel.CreateUnbounded<string>();
ObservableExtensions.cs (1)
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)
167var channel = Channel.CreateUnbounded<string>();
System.Net.Quic (1)
System\Net\Quic\QuicListener.cs (1)
141_acceptQueue = Channel.CreateUnbounded<object>();
Test.Utilities (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();
TestDiscoveryWorker (1)
Program.cs (1)
116_channel = Channel.CreateUnbounded<string>();
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\ProducerConsumer.cs (1)
270var channel = Channel.CreateUnbounded<TItem>();