23 instantiations of BlockingCollection
InteropTests (1)
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
28private readonly BlockingCollection<string> _messageQueue = new BlockingCollection<string>(_maxQueuedMessages);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Microsoft.AspNetCore.Shared.Tests (1)
SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
579private BlockingCollection<INodePacket> _packetWriteQueue = new BlockingCollection<INodePacket>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1424private readonly BlockingCollection<Task> _tasks = new BlockingCollection<Task>();
Microsoft.DotNet.Open.Api.Tools.Tests (1)
ProcessEx.cs (1)
22private BlockingCollection<string> _stdoutLines = new BlockingCollection<string>();
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Extensions.Http.Polly.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLoggerProvider.cs (2)
158new BlockingCollection<LogMessage>(new ConcurrentQueue<LogMessage>()) : 159new BlockingCollection<LogMessage>(new ConcurrentQueue<LogMessage>(), _queueSize.Value);
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
178new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>();
Templates.Blazor.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
Templates.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
41_stdoutLines = new BlockingCollection<string>();
UnitTests.Common (1)
TestTypes.cs (1)
269new BlockingCollection<KeyValuePair<SendOrPostCallback, object>>();
150 references to BlockingCollection
InteropTests (1)
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
28private readonly BlockingCollection<string> _messageQueue = new BlockingCollection<string>(_maxQueuedMessages);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Microsoft.AspNetCore.Shared.Tests (1)
SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
579private BlockingCollection<INodePacket> _packetWriteQueue = new BlockingCollection<INodePacket>();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1424private readonly BlockingCollection<Task> _tasks = new BlockingCollection<Task>();
Microsoft.DotNet.Open.Api.Tools.Tests (1)
ProcessEx.cs (1)
22private BlockingCollection<string> _stdoutLines = new BlockingCollection<string>();
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Extensions.Http.Polly.Tests (1)
src\Shared\test\Shared.Tests\SingleThreadedSynchronizationContext.cs (1)
14private readonly BlockingCollection<(SendOrPostCallback Callback, object? State)> _queue = new BlockingCollection<(SendOrPostCallback Callback, object? State)>();
Microsoft.Extensions.Logging.AzureAppServices (1)
BatchingLoggerProvider.cs (1)
26private BlockingCollection<LogMessage> _messageQueue;
netstandard (1)
netstandard.cs (1)
93[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Concurrent.BlockingCollection<>))]
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
177private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue =
System (1)
src\libraries\shims\System\ref\System.cs (1)
132[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Concurrent.BlockingCollection<>))]
System.Collections.Concurrent (126)
System\Collections\Concurrent\BlockingCollection.cs (126)
30/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> is used as a wrapper 33/// a <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> can be created to enforce 37/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> is similar to a traditional 60/// <summary>Gets the bounded capacity of this <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</summary> 63/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 73/// <summary>Gets whether this <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked as complete for adding.</summary> 76/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 86/// <summary>Gets whether this <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked as complete for adding and is empty.</summary> 89/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 99/// <summary>Gets the number of items contained in the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>.</summary> 100/// <value>The number of items contained in the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>.</value> 102/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 114/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 140/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> 152/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> 166/// <summary>Initializes a new instance of the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> 189/// <summary>Initializes a new instance of the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> 236/// Adds the item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 240/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 243/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 247/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> was initialized, 262/// Adds the item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 270/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 273/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 277/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> was initialized, 292/// Attempts to add the specified item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 297/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 300/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 308/// Attempts to add the specified item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 317/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 320/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 332/// Attempts to add the specified item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 340/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 343/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 354/// Attempts to add the specified item to the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 366/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been marked 369/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 499/// <summary>Takes an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>.</summary> 502/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 505/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance, or the <see 506/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> is empty and has been marked 521/// <summary>Takes an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>.</summary> 526/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 529/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance, or the <see 530/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> is empty and has been marked 546/// Attempts to remove an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 551/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 554/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 561/// Attempts to remove an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 570/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 576/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 584/// Attempts to remove an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 592/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 597/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 605/// Attempts to remove an item from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/>. 617/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 622/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 737/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 748/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 754/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances were initialized, 758public static int AddToAny(BlockingCollection<T>[] collections, T item) 775/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 790/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 796/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances were initialized, 800public static int AddToAny(BlockingCollection<T>[] collections, T item, CancellationToken cancellationToken) 817/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 829/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 833public static int TryAddToAny(BlockingCollection<T>[] collections, T item) 840/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 855/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 862public static int TryAddToAny(BlockingCollection<T>[] collections, T item, TimeSpan timeout) 870/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 883/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 889public static int TryAddToAny(BlockingCollection<T>[] collections, T item, int millisecondsTimeout) 897/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 915/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 921public static int TryAddToAny(BlockingCollection<T>[] collections, T item, int millisecondsTimeout, CancellationToken cancellationToken) 943private static int TryAddToAnyCore(BlockingCollection<T>[] collections, T item, int millisecondsTimeout, CancellationToken externalCancellationToken) 1022private static int TryAddToAnyFast(BlockingCollection<T>[] collections, T item) 1048private static List<WaitHandle> GetHandles(BlockingCollection<T>[] collections, CancellationToken externalCancellationToken, bool isAddOperation, out CancellationToken[] cancellationTokens) 1060BlockingCollection<T> c = collections[i]; 1118/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1129/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1132/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1136public static int TakeFromAny(BlockingCollection<T>[] collections, out T? item) 1143/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1158/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1161/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1165public static int TakeFromAny(BlockingCollection<T>[] collections, out T? item, CancellationToken cancellationToken) 1175/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1186/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1189/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1193public static int TryTakeFromAny(BlockingCollection<T>[] collections, out T? item) 1200/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1214/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1220/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1224public static int TryTakeFromAny(BlockingCollection<T>[] collections, out T? item, TimeSpan timeout) 1232/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1245/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1250/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1254public static int TryTakeFromAny(BlockingCollection<T>[] collections, out T? item, int millisecondsTimeout) 1262/// <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances. 1279/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances has been disposed.</exception> 1284/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance.</exception> 1288public static int TryTakeFromAny(BlockingCollection<T>[] collections, out T? item, int millisecondsTimeout, CancellationToken cancellationToken) 1311private static int TryTakeFromAnyCore(BlockingCollection<T>[] collections, out T? item, int millisecondsTimeout, bool isTakeOperation, CancellationToken externalCancellationToken) 1345private static int TryTakeFromAnyCoreSlow(BlockingCollection<T>[] collections, out T? item, int millisecondsTimeout, bool isTakeOperation, CancellationToken externalCancellationToken) 1428/// Marks the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instances 1436/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1488/// Releases resources used by the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance. 1497/// Releases resources used by the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance. 1511/// <summary>Copies the items from the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance into a new array.</summary> 1514/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1524/// <summary>Copies all of the items in the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance 1528/// the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance. The array must have zero-based indexing.</param> 1536/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1542/// <summary>Copies all of the items in the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance 1546/// the <see cref="System.Collections.Concurrent.BlockingCollection{T}"/> instance. The array must have zero-based indexing.</param> 1555/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1597/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1610/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1629/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1639/// cref="System.Collections.Concurrent.BlockingCollection{T}"/> has been disposed.</exception> 1653private static void ValidateCollectionsArray(BlockingCollection<T>[] collections, bool isAddOperation) 1733private readonly BlockingCollection<T> _blockingCollection; // The collection being viewed. 1737public BlockingCollectionDebugView(BlockingCollection<T> collection)
Templates.Blazor.Tests (1)
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
Templates.Tests (2)
src\Shared\E2ETesting\SauceConnectServer.cs (1)
124var logOutput = new BlockingCollection<string>();
src\Shared\Process\ProcessEx.cs (1)
30private BlockingCollection<string> _stdoutLines;
UnitTests.Common (1)
TestTypes.cs (1)
268private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue =