203 references to InnerExceptions
Aspire.Cli.Tests (1)
Projects\AppHostServerSessionTests.cs (1)
418if (e.Exception.InnerExceptions.Any(static ex => ex is InvalidOperationException { Message: "simulated launch failure" }))
Aspire.Hosting (1)
Pipelines\DistributedApplicationPipeline.cs (1)
915.SelectMany(ae => ae.InnerExceptions)
Aspire.Hosting.Azure (3)
AzureProvisioningController.cs (2)
1094resource.AzureResource.ProvisioningTaskCompletionSource?.Task.Exception?.InnerExceptions.Any(IsMissingAzureContextFailure) == true); 1702ex is AggregateException aggregateException && aggregateException.InnerExceptions.Any(IsMissingAzureContextFailure);
src\Shared\ExceptionUtils.cs (1)
14foreach (var innerException in aggregateException.InnerExceptions)
Aspire.Hosting.Azure.Kubernetes.Tests (2)
AzureKubernetesIngressTests.cs (2)
154var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints")); 176var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints"));
Aspire.Hosting.Kubernetes.Tests (5)
KubernetesGatewayTests.cs (3)
193var exception = aggregate.Flatten().InnerExceptions 547var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints")); 570var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints"));
KubernetesIngressTests.cs (2)
747var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints")); 770var ex = aggregate.Flatten().InnerExceptions.OfType<InvalidOperationException>().First(e => e.Message.Contains("WithExternalHttpEndpoints"));
Aspire.Hosting.Maui.Tests (5)
MauiPlatformExtensionsTests.cs (5)
1293Assert.Equal(2, exception.InnerExceptions.Count); 1294Assert.All(exception.InnerExceptions, innerException => Assert.IsType<DistributedApplicationException>(innerException)); 1295Assert.Contains(exception.InnerExceptions, innerException => innerException.Message.Contains("endpoint could not be determined", StringComparison.Ordinal)); 1296Assert.Contains(exception.InnerExceptions, innerException => innerException.Message.Contains("protocol could not be determined", StringComparison.Ordinal)); 1392environmentException.InnerExceptions,
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationDiagnostic.cs (1)
228foreach (var inner in aggregate.InnerExceptions)
Aspire.Hosting.Tests (2)
DistributedApplicationTests.cs (2)
712Assert.IsType<DistributedApplicationException>(ex.InnerExceptions.First()); 713Assert.Equal(exceptionMessage, ex.InnerExceptions.First().Message);
CodeStyleConfigFileGenerator (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\TaskBase.cs (2)
65for (int i = 0; i < aggregate.InnerExceptions.Count; i++) 72ExceptionToStringWithoutMessage(aggregate.InnerExceptions[i]),
dotnet-aot (2)
parent\dotnet\Telemetry\TelemetryFilter.cs (2)
151for (int i = 0; i < aggregate.InnerExceptions.Count; i++) 158ExceptionToStringWithoutMessage(aggregate.InnerExceptions[i]),
dotnet-openapi (1)
Application.cs (1)
63foreach (var innerException in ex.InnerExceptions)
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (1)
136ReadOnlyCollection<Exception> innerExceptions = aggregateException.Flatten().InnerExceptions;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
205ReadOnlyCollection<Exception> innerExceptions = ((AggregateException)exception).InnerExceptions;
Tool.cs (1)
346foreach (var ax in agex.InnerExceptions)
GenerateDocumentationAndConfigFiles (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
374exceptions = agEx.InnerExceptions;
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
120foreach (var innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.AspNetCore.Components.WebAssembly (1)
Rendering\WebAssemblyRenderer.cs (1)
244foreach (var innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.AspNetCore.Diagnostics (1)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
76foreach (var innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostService.cs (1)
190foreach (var exception in Options.HostingStartupExceptions.InnerExceptions)
Internal\WebHost.cs (1)
166foreach (var exception in _hostingStartupErrors.InnerExceptions)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
76foreach (var innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
76foreach (var innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.Build (11)
BackEnd\BuildManager\BuildManager.cs (8)
1306if (e is AggregateException ae && ae.InnerExceptions.Count == 1) 1308ExceptionDispatchInfo.Capture(ae.InnerExceptions[0]).Throw(); 2200if (ae.InnerExceptions.Count == 1) 2202ex = ae.InnerExceptions[0]; 2207foreach (Exception innerException in ae.InnerExceptions) 2983catch (AggregateException ex) when (ex.InnerExceptions.All(inner => inner is OperationCanceledException)) 3334if (e is AggregateException ae && ae.InnerExceptions.Count == 1) 3336e = ae.InnerExceptions.First();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
319return e.Flatten().InnerExceptions.All(ex => ex is TaskCanceledException || ex is OperationCanceledException);
parent\Shared\TaskLoggingHelper.cs (2)
946foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1574foreach (Exception innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.Build.Framework (6)
ExceptionHandling.cs (1)
48if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FatalError.cs (2)
292if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Utilities\FileMatcher.cs (1)
3995&& aggregateException.Flatten().InnerExceptions.All(ExceptionHandling.IsIoRelatedException));
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.Build.Utilities.Core (2)
parent\Shared\TaskLoggingHelper.cs (2)
946foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1574foreach (Exception innerException in aggregateException.Flatten().InnerExceptions)
Microsoft.CodeAnalysis (5)
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
23return string.Join(s_separator, flattened.InnerExceptions.Select(e => GetExceptionMessage(e)));
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.CodeAnalysis.Analyzers (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
520_exceptions.AddRange(ae.InnerExceptions);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.CodeAnalysis.AnalyzerUtilities (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
520_exceptions.AddRange(ae.InnerExceptions);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.CodeAnalysis.CodeStyle (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
520_exceptions.AddRange(ae.InnerExceptions);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.CodeAnalysis.Features (4)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (2)
145if (ae.InnerExceptions.Any(e => e is not OperationCanceledException) || 146ae.InnerExceptions.Cast<OperationCanceledException>().Any(NotOurShutdownToken))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (1)
236if (flattened.InnerExceptions.All(e => e is OperationCanceledException))
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (1)
23return string.Join(s_separator, flattened.InnerExceptions.Select(e => GetExceptionMessage(e)));
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
520_exceptions.AddRange(ae.InnerExceptions);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.CodeAnalysis.Workspaces (7)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (4)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
Microsoft.DotNet.ApiCompat.Task (2)
src\sdk\src\Tasks\Common\TaskBase.cs (2)
65for (int i = 0; i < aggregate.InnerExceptions.Count; i++) 72ExceptionToStringWithoutMessage(aggregate.InnerExceptions[i]),
Microsoft.DotNet.HotReload.Watch (2)
Build\ProjectGraphFactory.cs (1)
84if (e is AggregateException { InnerExceptions: var innerExceptions })
src\sdk\src\Dotnet.Watch\AspireService\Helpers\ExceptionExtensions.cs (1)
21foreach (var e in aggException.Flatten().InnerExceptions)
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\UpdatePackageVersionTask.cs (1)
92foreach (var inner in e.InnerExceptions)
Microsoft.Extensions.AI.Evaluation.Console (1)
Utilities\ExceptionUtilities.cs (1)
34foreach (var innerException in aggregateException.InnerExceptions)
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
886Assert.Equal(2, ex.InnerExceptions.Count); 887Assert.Equal("Exception from call 11", ex.InnerExceptions[0].Message); 888Assert.Equal("Exception from call 12", ex.InnerExceptions[1].Message); 892Assert.Equal(2, ex.InnerExceptions.Count); 893Assert.Equal("Exception from call 11", ex.InnerExceptions[0].Message); 894Assert.Equal("Exception from call 12", ex.InnerExceptions[1].Message);
Microsoft.Extensions.Hosting (5)
Internal\Host.cs (5)
148ex.InnerExceptions.Count > 0 && 149ex.InnerExceptions.All(static e => e is OptionsValidationException)) 153(validationFailures ??= new()).AddRange(ex.InnerExceptions); 468exceptions.AddRange(task.Exception.InnerExceptions); // Log exception from async method. 495exceptions.AddRange(groupedTasks.Exception.InnerExceptions);
Microsoft.Extensions.Hosting.Testing.Tests (2)
FakeHostBuilderTests.cs (2)
139((AggregateException)exception).InnerExceptions, 171((AggregateException)exception).InnerExceptions,
Microsoft.Extensions.Logging.AzureAppServices (2)
BatchingLoggerProvider.cs (2)
177catch (AggregateException ex) when (ex.InnerExceptions.Count == 1 && ex.InnerExceptions[0] is TaskCanceledException)
Microsoft.Extensions.Options.Contextual.Tests (2)
ContextualOptionsFactoryTests.cs (2)
223Assert.Equal(2, exception.InnerExceptions.Count); 248Assert.Equal(2, exception.InnerExceptions.Count);
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
204foreach (var ex in aggregateException.InnerExceptions)
Microsoft.ML.AutoML (1)
Experiment\Experiment.cs (1)
209if (e.InnerExceptions.All(exception => exception is OperationCanceledException))
Microsoft.ML.AutoML.Tests (2)
AutoFitTests.cs (2)
564foreach (var ex in ae.Flatten().InnerExceptions) 672foreach (var ex in lastAggregateException.Flatten().InnerExceptions)
Microsoft.NET.Build.Extensions.Tasks (2)
parent\Common\TaskBase.cs (2)
65for (int i = 0; i < aggregate.InnerExceptions.Count; i++) 72ExceptionToStringWithoutMessage(aggregate.InnerExceptions[i]),
Microsoft.NET.Build.Tasks (2)
parent\Common\TaskBase.cs (2)
65for (int i = 0; i < aggregate.InnerExceptions.Count; i++) 72ExceptionToStringWithoutMessage(aggregate.InnerExceptions[i]),
Microsoft.TemplateEngine.Cli (2)
Commands\BaseCommand.cs (2)
259while (ax != null && ax.InnerExceptions.Count == 1 && ax.InnerException is not null) 272while (ax != null && ax.InnerExceptions.Count == 1 && ax.InnerException is not null)
MSBuild (1)
XMake.cs (1)
1986&& !(exception is AggregateException aggregateException && aggregateException.InnerExceptions.All(innerException => innerException is InvalidProjectFileException))
NuGet.Build.Tasks.Console (2)
MSBuildStaticGraphRestore.cs (2)
911var innerException = e is AggregateException agg ? agg.InnerExceptions[0] : e; 1437foreach (Exception innerException in aggregateException.Flatten().InnerExceptions)
NuGet.Commands (1)
RestoreCommand\Utility\AuditUtility.cs (1)
249foreach (Exception exception in exceptions.InnerExceptions)
NuGet.Common (1)
ExceptionUtilities.cs (1)
132var inners = exception.Flatten().InnerExceptions;
NuGet.PackageManagement (2)
Audit\AuditChecker.cs (2)
75foreach (Exception exception in allVulnerabilityData.Exceptions.InnerExceptions) 208errors.AddRange(result.Exceptions.InnerExceptions);
Roslyn.Diagnostics.Analyzers (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (2)
37if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1) 39exception = aggregate.InnerExceptions[0];
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
295if (exception is AggregateException aggregate && aggregate.InnerExceptions.Count == 1 && aggregate.InnerExceptions[0].Data[s_reportedMarker] != null)
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (1)
520_exceptions.AddRange(ae.InnerExceptions);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\RoslynTelemetry.cs (1)
77foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
582if (task.Exception.InnerExceptions.Count > 0) 583this.TrySetException(task.Exception.InnerExceptions);
rzc (1)
Application.cs (1)
58foreach (var innerException in ex.Flatten().InnerExceptions)
System.Diagnostics.Process (1)
System\Diagnostics\Process.Multiplexing.cs (1)
465if (whenAll.Exception?.InnerExceptions.Count > 1)
System.Linq.Parallel (3)
System\Linq\Parallel\Scheduling\QueryTaskGroupState.cs (3)
112for (int i = 0; i < flattenedAE.InnerExceptions.Count; i++) 114OperationCanceledException? oce = flattenedAE.InnerExceptions[i] as OperationCanceledException; 130if (!allOCEsOnTrackedExternalCancellationToken || flattenedAE.InnerExceptions.Count == 0)
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
228while (backAsAggregate != null && backAsAggregate.InnerExceptions.Count == 1) 311ReadOnlyCollection<Exception> currentInnerExceptions = exceptionsToFlatten[nDequeueIndex++].InnerExceptions;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
5095/// contains an <see cref="OperationCanceledException"/> in its <see cref="AggregateException.InnerExceptions"/> collection.
System\CrashInfo.cs (1)
216foreach (Exception ex in aggregate.InnerExceptions)
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\ExceptionUtility.cs (1)
35var innerExceptions = ((AggregateException)exception).InnerExceptions;
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (2)
65if (cpy is AggregateException ae && ae.InnerExceptions.Count == 1) 67cpy = ae.InnerExceptions[0];
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
37var innerExceptions = ((AggregateException)exception).InnerExceptions;
System.ServiceModel.Federation (1)
System\Runtime\Fx.cs (1)
33ReadOnlyCollection<Exception> innerExceptions = aggException.InnerExceptions;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\ConnectionPool.cs (1)
344var toe = ae.InnerExceptions.FirstOrDefault(e => e is TimeoutException);
System.ServiceModel.Primitives (2)
Internals\System\Runtime\ExceptionTrace.cs (1)
215ReadOnlyCollection<Exception> innerExceptions = aggregateException.Flatten().InnerExceptions;
Internals\System\Runtime\Fx.cs (1)
207ReadOnlyCollection<Exception> innerExceptions = ((AggregateException)exception).InnerExceptions;
System.ServiceModel.Primitives.Tests (1)
ServiceModel\ThrowingOnCloseBindingElement.cs (1)
166tcs.TrySetException(task.Exception.InnerExceptions);
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\ChainedRateLimiterShared.cs (2)
135Exception[] exceptions = new Exception[innerEx.InnerExceptions.Count + 1]; 136innerEx.InnerExceptions.CopyTo(exceptions, 0);
System.Threading.Tasks.Dataflow (4)
Internal\Common.cs (2)
254foreach (Exception innerException in aggregate.InnerExceptions) 325list.AddRange(aggregate.InnerExceptions);
Internal\DataflowEtwProvider.cs (1)
140try { exceptionData = string.Join(Environment.NewLine, completionTask.Exception!.InnerExceptions.Select(static e => e.ToString())); }
Internal\SourceCore.cs (1)
483Debug.Assert(aggregateException != null && aggregateException.InnerExceptions.Count > 0, "Aggregate must be valid and contain inner exceptions to unwrap.");
System.Threading.Tasks.Parallel (5)
System\Threading\Tasks\Parallel.cs (4)
311foreach (Exception exc in ae.InnerExceptions) exceptionQ.Enqueue(exc); 353ThrowSingleCancellationExceptionOrOtherException(aggExp.InnerExceptions, parallelOptions.CancellationToken, aggExp); 1126ThrowSingleCancellationExceptionOrOtherException(aggExp.InnerExceptions, parallelOptions.CancellationToken, aggExp); 2762ThrowSingleCancellationExceptionOrOtherException(aggExp.InnerExceptions, parallelOptions.CancellationToken, aggExp);
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
633_exceptions.AddRange(ae.InnerExceptions);