157 references to new
Aspire.Cli.Tests (1)
GenerateDocumentationAndConfigFiles (5)
Metrics (4)
Metrics.Legacy (4)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Microbenchmarks (4)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (5)
Microsoft.CodeAnalysis.AnalyzerUtilities (4)
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
Microsoft.CodeAnalysis.PublicApiAnalyzers (4)
Microsoft.CodeAnalysis.ResxSourceGenerator (4)
Microsoft.CodeAnalysis.Workspaces (7)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
UtilityTest\SpecializedTasksTests.cs (7)
55var whenAll = SpecializedTasks.WhenAll([new ValueTask<int>(Task.FromCanceled<int>(new CancellationToken(true)))]);
65var whenAll = SpecializedTasks.WhenAll([new ValueTask<int>(completionSource.Task)]);
186Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(cancellationToken));
243Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token));
310Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromCanceled<IntermediateType>(unexpectedCts.Token));
391Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault));
471Func<StateType, CancellationToken, ValueTask<IntermediateType>> func = (_, _) => new(Task.FromException<IntermediateType>(fault));
Microsoft.DotNet.Build.Tasks.Feed (1)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.JSInterop (2)
Microsoft.ML.Tokenizers (1)
Roslyn.Diagnostics.Analyzers (5)
Shared (1)
System.IO.Pipelines (5)
System.IO.Ports (1)
System.Net.Http (2)
System.Net.Http.Json (1)
System.Net.Security (3)
System.Private.CoreLib (12)
System.Private.Xml (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.UnixDomainSocket (1)
System.Text.Json (1)
System.Threading.Channels (23)
System.Threading.RateLimiting (6)
Test.Utilities (4)
Text.Analyzers (5)