1 instantiation of ExceptionDispatchInfo
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (1)
34return new ExceptionDispatchInfo(source);
438 references to ExceptionDispatchInfo
Aspire.Hosting (2)
Publishing\ManifestPublishingContext.cs (2)
496ExceptionDispatchInfo.Throw(ex); 539ExceptionDispatchInfo.Throw(ex);
Aspire.Hosting.Tests (2)
Utils\ArgumentEvaluator.cs (1)
21ExceptionDispatchInfo.Throw(ex);
Utils\EnvironmentVariableEvaluator.cs (1)
27ExceptionDispatchInfo.Throw(ex);
Binding.Tcp.IntegrationTests (1)
OperationContextAsyncFlowTests.cs (1)
124ExceptionDispatchInfo.Capture(callbackService.Exception).Throw();
GenerateDocumentationAndConfigFiles (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
77ExceptionDispatchInfo.Throw(ex.InnerException);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
InMemory.FunctionalTests (6)
Http2\Http2StreamTests.cs (3)
1914ExceptionDispatchInfo.Capture(exception).Throw(); 1999ExceptionDispatchInfo.Capture(exception).Throw(); 2061ExceptionDispatchInfo.Capture(exception).Throw();
Http3\Http3StreamTests.cs (3)
2565ExceptionDispatchInfo.Capture(exception).Throw(); 2637ExceptionDispatchInfo.Capture(exception).Throw(); 2691ExceptionDispatchInfo.Capture(exception).Throw();
JwtBearerSample (1)
Startup.cs (1)
59ExceptionDispatchInfo.Capture(authResult.Failure).Throw();
Metrics (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Metrics.Legacy (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.AspNetCore.Components (5)
ErrorBoundaryBase.cs (4)
77ExceptionDispatchInfo.Capture(exception).Throw(); 98ExceptionDispatchInfo.Capture(onExceptionTask.Exception!).Throw(); 113ChildContent = _ => ExceptionDispatchInfo.Capture(exception).Throw(); 114ErrorContent = _ => _ => ExceptionDispatchInfo.Capture(exception).Throw();
Routing\Router.cs (1)
371_renderHandle.Render(builder => ExceptionDispatchInfo.Throw(e));
Microsoft.AspNetCore.Components.Authorization.Tests (3)
src\Components\Shared\test\AutoRenderComponent.cs (1)
38ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\TestRenderer.cs (2)
91ExceptionDispatchInfo.Capture(exception).Throw(); 104ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
ImportMapTest.cs (2)
324ExceptionDispatchInfo.Capture(exception).Throw(); 337ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\AutoRenderComponent.cs (1)
38ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.Forms.Tests (3)
src\Components\Shared\test\AutoRenderComponent.cs (1)
38ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\TestRenderer.cs (2)
91ExceptionDispatchInfo.Capture(exception).Throw(); 104ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.Server (3)
src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (3)
96return new InvocationBindingFailureMessage(invocationId, target, ExceptionDispatchInfo.Capture(ex)); 126return new InvocationBindingFailureMessage(invocationId, target, ExceptionDispatchInfo.Capture(ex)); 153return new StreamBindingFailureMessage(invocationId, ExceptionDispatchInfo.Capture(ex));
Microsoft.AspNetCore.Components.Tests (4)
RendererTest.cs (1)
5216ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\AutoRenderComponent.cs (1)
38ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\TestRenderer.cs (2)
91ExceptionDispatchInfo.Capture(exception).Throw(); 104ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.Web (2)
HtmlRendering\StaticHtmlRenderer.cs (2)
74ExceptionDispatchInfo.Capture(quiescenceTask.Exception.InnerException ?? quiescenceTask.Exception).Throw(); 82=> ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.Web.Tests (3)
src\Components\Shared\test\AutoRenderComponent.cs (1)
38ExceptionDispatchInfo.Capture(exception).Throw();
src\Components\Shared\test\TestRenderer.cs (2)
91ExceptionDispatchInfo.Capture(exception).Throw(); 104ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.WebView (1)
IpcSender.cs (1)
92_dispatcher.InvokeAsync(() => ExceptionDispatchInfo.Capture(exception).Throw());
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
WindowsFormsDispatcher.cs (1)
19 ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Components.WebView.Wpf (1)
WpfDispatcher.cs (1)
21 ExceptionDispatchInfo.Capture(exception).Throw();
Microsoft.AspNetCore.Diagnostics (7)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (6)
73ExceptionDispatchInfo edi; 88edi = ExceptionDispatchInfo.Capture(exception); 95ExceptionDispatchInfo? edi = null; 103edi = ExceptionDispatchInfo.Capture(exception); 113private async Task HandleException(HttpContext context, ExceptionDispatchInfo edi) 217edi = ExceptionDispatchInfo.Capture(new InvalidOperationException($"The exception handler configured on {nameof(ExceptionHandlerOptions)} produced a 404 status response. " +
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
173if (type == typeof(ExceptionDispatchInfo) && method.Name == "Throw")
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
src\Grpc\JsonTranscoding\src\Shared\Server\UnaryServerMethodInvoker.cs (3)
118var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex); 162private static async Task<TResponse> AwaitServiceReleaseAndThrow(ValueTask releaseTask, ExceptionDispatchInfo ex)
Microsoft.AspNetCore.Hosting (11)
GenericHost\GenericWebHostBuilder.cs (4)
107var capture = ExceptionDispatchInfo.Capture(ex); 220ExceptionDispatchInfo? startupError = null; 260startupError = ExceptionDispatchInfo.Capture(ex);
Internal\WebHost.cs (2)
37private ExceptionDispatchInfo? _applicationServicesException; 115_applicationServicesException = ExceptionDispatchInfo.Capture(ex);
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
173if (type == typeof(ExceptionDispatchInfo) && method.Name == "Throw")
Startup\ConventionBasedStartup.cs (2)
28ExceptionDispatchInfo.Capture(ex.InnerException!).Throw(); 41ExceptionDispatchInfo.Capture(ex.InnerException!).Throw();
WebHostBuilder.cs (2)
339var capture = ExceptionDispatchInfo.Capture(ex);
Microsoft.AspNetCore.InternalTesting (2)
LoggedTest\LoggedTestBase.cs (2)
20private ExceptionDispatchInfo _initializationException; 91_initializationException = ExceptionDispatchInfo.Capture(e);
Microsoft.AspNetCore.Mvc.Abstractions (11)
Filters\ActionExecutedContext.cs (3)
14private ExceptionDispatchInfo? _exceptionDispatchInfo; 67/// Gets or sets the <see cref="System.Runtime.ExceptionServices.ExceptionDispatchInfo"/> for the 70public virtual ExceptionDispatchInfo? ExceptionDispatchInfo
Filters\ExceptionContext.cs (3)
15private ExceptionDispatchInfo? _exceptionDispatchInfo; 52/// Gets or sets the <see cref="System.Runtime.ExceptionServices.ExceptionDispatchInfo"/> for the 55public virtual ExceptionDispatchInfo? ExceptionDispatchInfo
Filters\ResourceExecutedContext.cs (2)
14private ExceptionDispatchInfo? _exceptionDispatchInfo; 78public virtual ExceptionDispatchInfo? ExceptionDispatchInfo
Filters\ResultExecutedContext.cs (3)
14private ExceptionDispatchInfo? _exceptionDispatchInfo; 75/// Gets or sets the <see cref="System.Runtime.ExceptionServices.ExceptionDispatchInfo"/> for the 78public virtual ExceptionDispatchInfo? ExceptionDispatchInfo
Microsoft.AspNetCore.Mvc.Core (16)
Formatters\SystemTextJsonOutputFormatter.cs (2)
109ExceptionDispatchInfo? exceptionDispatchInfo = null; 128exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
Infrastructure\ControllerActionInvoker.cs (2)
310ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception), 332ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception),
Infrastructure\ResourceInvoker.cs (5)
967ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception), 989ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception), 1039ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception), 1369ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception), 1392ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception),
Infrastructure\SystemTextJsonResultExecutor.cs (2)
79ExceptionDispatchInfo? exceptionDispatchInfo = null; 92exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
ModelBinding\Binders\DecimalModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\DoubleModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\FloatModelBinder.cs (1)
99exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
94exception = ExceptionDispatchInfo.Capture(exception.InnerException).SourceException;
ModelBinding\ModelBindingHelper.cs (1)
738ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\MiddlewareFilterBuilderTest.cs (2)
247ExceptionDispatchInfo exceptionInfo; 255exceptionInfo = ExceptionDispatchInfo.Capture(ex);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonInputFormatter.cs (2)
201var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception);
Microsoft.AspNetCore.Mvc.RazorPages (4)
Filters\PageHandlerExecutedContext.cs (3)
18private ExceptionDispatchInfo? _exceptionDispatchInfo; 87/// Gets or sets the <see cref="System.Runtime.ExceptionServices.ExceptionDispatchInfo"/> for the 90public virtual ExceptionDispatchInfo? ExceptionDispatchInfo
Infrastructure\PageActionInvoker.cs (1)
666ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception),
Microsoft.AspNetCore.Server.IIS (3)
Core\EmptyStream.cs (1)
81ExceptionDispatchInfo.Capture(_error).Throw();
Core\HttpRequestStream.cs (1)
129ExceptionDispatchInfo.Capture(_error).Throw();
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
173if (type == typeof(ExceptionDispatchInfo) && method.Name == "Throw")
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpRequestPipeReader.cs (2)
17private ExceptionDispatchInfo? _error; 98_error ??= ExceptionDispatchInfo.Capture(error);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (3)
Internal\QuicConnectionContext.cs (2)
32private ExceptionDispatchInfo? _abortReason; 86_abortReason = ExceptionDispatchInfo.Capture(abortReason);
Internal\QuicStreamContext.cs (1)
391ExceptionDispatchInfo.Throw(_writeAbortException);
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (1)
173if (type == typeof(ExceptionDispatchInfo) && method.Name == "Throw")
Microsoft.AspNetCore.SignalR.Common (4)
Protocol\InvocationBindingFailureMessage.cs (2)
19public ExceptionDispatchInfo BindingFailure { get; } 32public InvocationBindingFailureMessage(string? invocationId, string target, ExceptionDispatchInfo bindingFailure) : base(invocationId)
Protocol\StreamBindingFailureMessage.cs (2)
27public ExceptionDispatchInfo BindingFailure { get; } 34public StreamBindingFailureMessage(string id, ExceptionDispatchInfo bindingFailure)
Microsoft.AspNetCore.SignalR.Protocols.Json (6)
Protocol\JsonHubProtocol.cs (6)
140ExceptionDispatchInfo? argumentBindingException = null; 283return new StreamBindingFailureMessage(id, ExceptionDispatchInfo.Capture(ex)); 314argumentBindingException = ExceptionDispatchInfo.Capture(ex); 369argumentBindingException = ExceptionDispatchInfo.Capture(ex); 395argumentBindingException = ExceptionDispatchInfo.Capture(ex); 419message = new StreamBindingFailureMessage(invocationId, ExceptionDispatchInfo.Capture(ex));
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (3)
Protocol\MessagePackHubProtocolWorker.cs (3)
96return new InvocationBindingFailureMessage(invocationId, target, ExceptionDispatchInfo.Capture(ex)); 126return new InvocationBindingFailureMessage(invocationId, target, ExceptionDispatchInfo.Capture(ex)); 153return new StreamBindingFailureMessage(invocationId, ExceptionDispatchInfo.Capture(ex));
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (6)
Protocol\NewtonsoftJsonHubProtocol.cs (6)
136ExceptionDispatchInfo? argumentBindingException = null; 271return new StreamBindingFailureMessage(id, ExceptionDispatchInfo.Capture(ex)); 299argumentBindingException = ExceptionDispatchInfo.Capture(ex); 359argumentBindingException = ExceptionDispatchInfo.Capture(ex); 385argumentBindingException = ExceptionDispatchInfo.Capture(ex); 409message = new StreamBindingFailureMessage(invocationId, ExceptionDispatchInfo.Capture(ex));
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
83ExceptionDispatchInfo.Throw(exceptionFromApp);
Microsoft.Build (10)
BackEnd\BuildManager\BuildManager.cs (5)
118private ExceptionDispatchInfo? _threadException; 1078ExceptionDispatchInfo.Capture(ae.InnerExceptions[0]).Throw(); 2074ExceptionDispatchInfo? submissionException = null; 2126submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.Exception); 2876_threadException = ExceptionDispatchInfo.Capture(e);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
64ExceptionDispatchInfo? InitializationException = null); 239ExceptionDispatchInfo.Capture(e)); 310ExceptionDispatchInfo.Capture(e));
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
567ExceptionDispatchInfo exceptionFromExecution = null; 580exceptionFromExecution = ExceptionDispatchInfo.Capture(e);
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.CodeAnalysis (1)
InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.CodeAnalysis.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Diagnostics\SuppressMessageAttributeWorkspaceTests.cs (1)
115[new ThrowExceptionForEachNamedTypeAnalyzer(ExceptionDispatchInfo.Capture(new Exception()))],
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (4)
ResultProviderTestBase.cs (3)
190ExceptionDispatchInfo.Capture(exception).Throw(); 259ExceptionDispatchInfo.Capture(exception).Throw(); 274ExceptionDispatchInfo.Capture(exception).Throw();
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommonMemberFilter.cs (2)
48if (type == typeof(ExceptionDispatchInfo) && method.Name == nameof(ExceptionDispatchInfo.Throw))
Microsoft.CodeAnalysis.Test.Utilities (3)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (3)
260private readonly ExceptionDispatchInfo _exceptionDispatchInfo; 262public ThrowExceptionForEachNamedTypeAnalyzer(ExceptionDispatchInfo exceptionDispatchInfo) 303ExceptionDispatchInfo.Capture(_exception).Throw();
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
151new[] { new ThrowExceptionForEachNamedTypeAnalyzer(ExceptionDispatchInfo.Capture(exception)) },
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
77ExceptionDispatchInfo.Throw(ex.InnerException);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (5)
44private readonly StrongBox<ExceptionDispatchInfo> _failedTransfer; 56private DenyExecutionSynchronizationContext(SynchronizationContext? underlyingContext, Thread? mainThread, StrongBox<ExceptionDispatchInfo>? failedTransfer) 60_failedTransfer = failedTransfer ?? new StrongBox<ExceptionDispatchInfo>(); 110_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 130_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
Microsoft.DotNet.RemoteExecutor (1)
Program.cs (1)
97ExceptionDispatchInfo.Capture(exc).Throw();
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
652ExceptionDispatchInfo.Capture(allExceptionsArray[0]).Throw();
Microsoft.Extensions.Configuration.FileExtensions (3)
FileConfigurationProvider.cs (3)
72HandleException(ExceptionDispatchInfo.Capture(new FileNotFoundException(error.ToString()))); 108HandleException(ExceptionDispatchInfo.Capture(exception)); 136private void HandleException(ExceptionDispatchInfo info)
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (2)
159ExceptionDispatchInfo.Capture(singleException).Throw(); 293ExceptionDispatchInfo.Capture(singleException).Throw();
Microsoft.Extensions.Options (1)
ValidateOnStart.cs (1)
43ExceptionDispatchInfo.Capture(exceptions[0]).Throw();
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcher.cs (1)
223ExceptionDispatchInfo.Throw(error);
Microsoft.JSInterop (5)
Infrastructure\DotNetDispatcher.cs (5)
88ExceptionDispatchInfo? syncException = null; 101syncException = ExceptionDispatchInfo.Capture(ex); 146var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(task.Exception.GetBaseException()); 197ExceptionDispatchInfo.Capture(tie.InnerException).Throw();
Microsoft.VisualStudio.IntegrationTest.Setup (1)
TestTraceListener.cs (1)
105ExceptionDispatchInfo.Capture(reportedException).Throw();
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
601[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.ExceptionServices.ExceptionDispatchInfo))]
netstandard (1)
netstandard.cs (1)
1593[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.ExceptionServices.ExceptionDispatchInfo))]
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
757System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(e).Throw();
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
67ExceptionDispatchInfo.Capture(ex).Throw();
Roslyn.Diagnostics.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
System.Diagnostics.Process (2)
System\Diagnostics\AsyncStreamReader.cs (2)
249ThreadPool.QueueUserWorkItem(edi => ((ExceptionDispatchInfo)edi!).Throw(), ExceptionDispatchInfo.Capture(e));
System.IO.FileSystem.DriveInfo (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal ExceptionDispatchInfo? _exception; 34callbackContext->_exception = ExceptionDispatchInfo.Capture(e);
System.IO.Pipelines (5)
System\IO\Pipelines\PipeCompletion.cs (4)
21public bool IsFaulted => _state is ExceptionDispatchInfo; 29_state = ExceptionDispatchInfo.Capture(exception); 61if (_state is ExceptionDispatchInfo edi) 81return new PipeCompletionCallbacks(callbacks, _state as ExceptionDispatchInfo);
System\IO\Pipelines\PipeCompletionCallbacks.cs (1)
14public PipeCompletionCallbacks(List<PipeCompletionCallback> callbacks, ExceptionDispatchInfo? edi)
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\Utilities.cs (1)
163ExceptionDispatchInfo.Throw(exception.InnerException!);
System.Net.Http (13)
System\Net\Http\MessageProcessingHandler.cs (1)
80sendState.TrySetException(ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.net_http_handler_noresponse)));
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
847ExceptionDispatchInfo.SetCurrentStackTrace(newException);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
477ExceptionDispatchInfo.SetCurrentStackTrace(hre);
System\Net\Http\SocketsHttpHandler\CreditWaiter.cs (2)
57((CreditWaiter)s!)._source.SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new OperationCanceledException(cancellationToken))); 83_source.SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(CreditManager), SR.net_http_disposed_while_in_use)));
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (4)
1469thisRef._waitSource.SetException(ExceptionDispatchInfo.SetCurrentStackTrace( 1611return ValueTask.FromException<int>(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream)))); 1625Http2Stream http2Stream = _http2Stream ?? throw ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream))); 1634http2Stream is null ? Task.FromException<int>(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream)))) :
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
1345ExceptionDispatchInfo.Throw(ex); // Rethrow. 1350ExceptionDispatchInfo.Throw(ex); // Rethrow.
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
447ExceptionDispatchInfo.Throw(rethrowException);
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
174return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.ObjectDisposed_StreamClosed)));
System.Net.HttpListener (3)
System\Net\Managed\HttpRequestStream.Managed.cs (1)
198ExceptionDispatchInfo.Throw(e.InnerException);
System\Net\Managed\HttpResponseStream.Managed.cs (1)
289ExceptionDispatchInfo.Throw(ex.InnerException);
System\Net\Managed\ListenerAsyncResult.Managed.cs (1)
196ExceptionDispatchInfo.Throw(_exception);
System.Net.Mail (8)
System\Net\Mail\SmtpClient.cs (8)
397ExceptionDispatchInfo.Throw(ex); 415return (ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(typeof(SmtpClient).FullName)), true); 438return (ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.net_inasync)), true); 554return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.net_timeout)); 566return ExceptionDispatchInfo.SetCurrentStackTrace(new SmtpException(SR.SmtpSendMailFailure, e)); 602ExceptionDispatchInfo.Throw(ex); 674ExceptionDispatchInfo.Throw(ex); 689ExceptionDispatchInfo.Throw(ex);
System.Net.Quic (16)
src\libraries\Common\src\System\Net\StreamBuffer.cs (1)
327_waitSource.SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new OperationCanceledException(cancellationToken)));
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
178exception = exception.StackTrace is null ? ExceptionDispatchInfo.SetCurrentStackTrace(exception) : exception;
System\Net\Quic\Internal\ValueTaskSource.cs (1)
119exception = exception.StackTrace is null ? ExceptionDispatchInfo.SetCurrentStackTrace(exception) : exception;
System\Net\Quic\QuicConnection.cs (5)
578ExceptionDispatchInfo.Throw(ex.InnerException); 653Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(ThrowHelper.GetExceptionForMsQuicStatus(data.Status, (long)data.ErrorCode)); 665Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(ThrowHelper.GetConnectionAbortedException((long)data.ErrorCode)); 679Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(_disposed ? new ObjectDisposedException(GetType().FullName) : ThrowHelper.GetOperationAbortedException()); 862_acceptQueue.Writer.TryComplete(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName)));
System\Net\Quic\QuicListener.cs (5)
190ExceptionDispatchInfo.Throw((Exception)item); 195ExceptionDispatchInfo.Throw(ex.InnerException); 276Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce)); 315ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.CallbackError, null, SR.net_quic_callback_error, ex)) : 430_acceptQueue.Writer.TryComplete(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(GetType().FullName)));
System\Net\Quic\QuicStream.cs (3)
364return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(QuicStream)))); 369return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.net_quic_writing_notallowed))); 387return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new InvalidOperationException(SR.Format(SR.net_io_invalidnestedcall, "write"))));
System.Net.Requests (3)
System\Net\FtpDataStream.cs (1)
297ExceptionDispatchInfo.Throw(e);
System\Net\FtpWebRequest.cs (2)
922SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new WebException(SR.net_timeout, WebExceptionStatus.Timeout))); 1135ExceptionDispatchInfo.Throw(_exception);
System.Net.Security (20)
System\Net\Security\NegotiateStream.cs (7)
27private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(NegotiateStream), (string?)null)); 49private ExceptionDispatchInfo? _exception; 577ExceptionDispatchInfo? e = _exception; 584void ThrowExceptional(ExceptionDispatchInfo e) 705_exception = ExceptionDispatchInfo.Capture(e); 927ExceptionDispatchInfo.Throw(exception);
System\Net\Security\SslStream.cs (5)
45private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(SslStream), (string?)null)); 47private ExceptionDispatchInfo? _exception; 896ExceptionDispatchInfo? e = _exception; 903void ThrowExceptional(ExceptionDispatchInfo e)
System\Net\Security\SslStream.IO.cs (6)
48_exception ??= ExceptionDispatchInfo.Capture(e); 526private void SendAuthResetSignal(ReadOnlySpan<byte> alert, ExceptionDispatchInfo exception) 597SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.net_ssl_io_cert_custom_validation, null))); 602SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_chain_validation, chainStatus), null))); 607SendAuthResetSignal(new ReadOnlySpan<byte>(alertToken.Payload), ExceptionDispatchInfo.Capture(new AuthenticationException(SR.Format(SR.net_ssl_io_cert_validation, sslPolicyErrors), null))); 655return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status))));
System\Net\Security\SslStream.Protocol.cs (2)
1199ExceptionDispatchInfo.Throw(status.Exception); 1218ExceptionDispatchInfo.Throw(status.Exception);
System.Net.Sockets (5)
System\Net\Sockets\Socket.cs (2)
954ExceptionDispatchInfo? lastex = null; 967lastex = ExceptionDispatchInfo.Capture(ex);
System\Net\Sockets\Socket.Tasks.cs (3)
219ExceptionDispatchInfo.Throw(lastException); 925Exception e = ExceptionDispatchInfo.SetCurrentStackTrace(new SocketException((int)error)); 1395e = ExceptionDispatchInfo.SetCurrentStackTrace(e);
System.Net.WebClient (3)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (3)
26private ExceptionDispatchInfo? _error; 60ExceptionDispatchInfo? error = _error; 99_error = ExceptionDispatchInfo.Capture(exception);
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (1)
1013inner = ExceptionDispatchInfo.SetCurrentStackTrace(
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (1)
81Exception exc = ExceptionDispatchInfo.SetCurrentStackTrace(
System.Private.CoreLib (63)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (2)
21internal ExceptionDispatchInfo? _exception; 34callbackContext->_exception = ExceptionDispatchInfo.Capture(e);
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
149internal AggregateException(List<ExceptionDispatchInfo> innerExceptionInfos) : 167internal AggregateException(string message, List<ExceptionDispatchInfo> innerExceptionInfos)
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1184return Task.FromException<byte[]>(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.IO_FileTooLong2GB)));
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (2)
53private readonly ExceptionDispatchInfo? _exceptionDispatch; 87_exceptionDispatch = ExceptionDispatchInfo.Capture(exception);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (2)
140ExceptionDispatchInfo? oceEdi = task.GetCancellationExceptionDispatchInfo(); 151List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos();
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (1)
30public static ExceptionDispatchInfo Capture(Exception source)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (4)
27private ExceptionDispatchInfo? _creationException; 59public ExceptionDispatchInfo? CreationException 141context->CreationException = ExceptionDispatchInfo.Capture(ex); 176context->CreationException = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (4)
176ExceptionDispatchInfo? edi = null; 186edi = ExceptionDispatchInfo.Capture(ex); 261ExceptionDispatchInfo? edi = null; 271edi = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\PeriodicTimer.cs (1)
254_mrvtsc.SetException(ExceptionDispatchInfo.SetCurrentStackTrace(new OperationCanceledException(cancellationToken)));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (4)
32private ExceptionDispatchInfo? _error; 75_error = ExceptionDispatchInfo.Capture(error); 343ExceptionDispatchInfo? edi = null; 354edi = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (20)
1744var eoAsEdi = exceptionObject as ExceptionDispatchInfo; 1745var eoAsEnumerableEdi = exceptionObject as IEnumerable<ExceptionDispatchInfo>; 1861internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 1869internal ExceptionDispatchInfo? GetCancellationExceptionDispatchInfo() 1903var edi = ExceptionDispatchInfo.Capture(exception); 1911targetContext.Post(static state => ((ExceptionDispatchInfo)state!).Throw(), edi); 1918edi = ExceptionDispatchInfo.Capture(new AggregateException(exception, postException)); 1926ThreadPool.QueueUserWorkItem(static state => ((ExceptionDispatchInfo)state!).Throw(), edi); 3279var edi = cancellationException as ExceptionDispatchInfo; 3370(exceptionObject is ExceptionDispatchInfo) || (exceptionObject is IEnumerable<ExceptionDispatchInfo>), 3413(cancellationException as ExceptionDispatchInfo)?.SourceException is OperationCanceledException, 6151List<ExceptionDispatchInfo>? observedExceptions = null; 6421List<ExceptionDispatchInfo>? observedExceptions = null; 6435observedExceptions ??= new List<ExceptionDispatchInfo>(); 7514List<ExceptionDispatchInfo> edis = task.GetExceptionDispatchInfos(); 7515ExceptionDispatchInfo oceEdi;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (19)
35private volatile List<ExceptionDispatchInfo>? m_faultExceptions; 37private ExceptionDispatchInfo? m_cancellationException; 95exceptionObject is ExceptionDispatchInfo || exceptionObject is IEnumerable<ExceptionDispatchInfo>, 124m_cancellationException = ExceptionDispatchInfo.Capture(oce); 128var edi = exceptionObject as ExceptionDispatchInfo; 148List<ExceptionDispatchInfo>? exceptions = m_faultExceptions ??= new List<ExceptionDispatchInfo>(1); 153exceptions.Add(ExceptionDispatchInfo.Capture(exception)); 158if (exceptionObject is ExceptionDispatchInfo edi) 176exceptions.Add(ExceptionDispatchInfo.Capture(exc)); 185if (exceptionObject is IEnumerable<ExceptionDispatchInfo> ediColl) 190foreach (ExceptionDispatchInfo tmp in exceptions) 254List<ExceptionDispatchInfo>? exceptions = m_faultExceptions; 281internal List<ExceptionDispatchInfo> GetExceptionDispatchInfos() 283List<ExceptionDispatchInfo>? exceptions = m_faultExceptions; 297internal ExceptionDispatchInfo? GetCancellationExceptionDispatchInfo() 299ExceptionDispatchInfo? edi = m_cancellationException;
src\System\Runtime\ControlledExecution.CoreCLR.cs (1)
104ExceptionDispatchInfo.SetRemoteStackTrace(e, stackTrace);
System.Private.Windows.Core (2)
System\ExceptionExtensions.cs (1)
37: (SerializationException)ExceptionDispatchInfo.SetRemoteStackTrace(
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
58throw ExceptionDispatchInfo.SetRemoteStackTrace(
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEReader.cs (1)
762ExceptionDispatchInfo.Capture(errorToReport).Throw();
System.Resources.Extensions (3)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
58throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException(); 79throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException();
System\Resources\Extensions\BinaryFormat\SerializationExtensions.cs (1)
19: (SerializationException)ExceptionDispatchInfo.SetRemoteStackTrace(
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
655[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.ExceptionServices.ExceptionDispatchInfo))]
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\ConnectionPool.cs (1)
345if (toe is not null) ExceptionDispatchInfo.Throw(toe);
System.Text.Json (10)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (5)
267ExceptionDispatchInfo edi = ExceptionDispatchInfo.Capture(ex); 344candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse)); 363public readonly ExceptionDispatchInfo? ExceptionDispatchInfo; 374public CacheEntry(ExceptionDispatchInfo exception)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
698private ExceptionDispatchInfo? _cachedConfigureError; 733_cachedConfigureError = ExceptionDispatchInfo.Capture(e);
System\Text\Json\Serialization\WriteStack.cs (3)
300ExceptionDispatchInfo.Capture(exception).Throw(); 326ExceptionDispatchInfo.Capture(exception).Throw(); 363ExceptionDispatchInfo.Capture(exception).Throw();
System.Threading.Channels (5)
System\Threading\Channels\AsyncOperation.cs (5)
65private protected ExceptionDispatchInfo? _error; 151_error = ExceptionDispatchInfo.Capture(exception); 166_error = ExceptionDispatchInfo.Capture(new OperationCanceledException(cancellationToken)); 458ExceptionDispatchInfo? error = _error; 502ExceptionDispatchInfo? error = _error;
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
169ExceptionDispatchInfo.Capture(ex).Throw();
System.Threading.Tasks.Dataflow (3)
Internal\Common.cs (3)
302ExceptionDispatchInfo edi = ExceptionDispatchInfo.Capture(error); 303ThreadPool.QueueUserWorkItem(static state => { ((ExceptionDispatchInfo)state!).Throw(); }, edi);
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.cs (3)
1096ExceptionDispatchInfo.Throw(ex); 2729ExceptionDispatchInfo.Throw(ex); 2848ExceptionDispatchInfo.Throw(reducedCancelEx ?? otherException);
System.Windows.Forms (3)
System\Windows\Forms\Application.ThreadContext.cs (1)
600ExceptionDispatchInfo.Capture(ex).Throw();
System\Windows\Forms\Control.cs (1)
6538ExceptionDispatchInfo.Throw(tme._exception);
System\Windows\Forms\WindowSubclassHandler.cs (1)
259ExceptionDispatchInfo.Throw(exception);
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
78ExceptionDispatchInfo.Capture(exception).Throw();
System.Windows.Forms.UI.IntegrationTests (5)
Infra\DenyExecutionSynchronizationContext.cs (5)
13private readonly StrongBox<ExceptionDispatchInfo> _failedTransfer; 20private DenyExecutionSynchronizationContext(SynchronizationContext underlyingContext, Thread? mainThread, StrongBox<ExceptionDispatchInfo>? failedTransfer) 24_failedTransfer = failedTransfer ?? new StrongBox<ExceptionDispatchInfo>(); 54_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 73_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
Templates.Blazor.WebAssembly.Auth.Tests (6)
src\Shared\E2ETesting\BrowserTestBase.cs (2)
17private ExceptionDispatchInfo _exceptionDispatchInfo; 85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (4)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 143private static ExceptionDispatchInfo CaptureException(Action assertion) 152return ExceptionDispatchInfo.Capture(ex);
Templates.Blazor.WebAssembly.Tests (6)
src\Shared\E2ETesting\BrowserTestBase.cs (2)
17private ExceptionDispatchInfo _exceptionDispatchInfo; 85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (4)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 143private static ExceptionDispatchInfo CaptureException(Action assertion) 152return ExceptionDispatchInfo.Capture(ex);
Templates.Mvc.Tests (6)
src\Shared\E2ETesting\BrowserTestBase.cs (2)
17private ExceptionDispatchInfo _exceptionDispatchInfo; 85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (4)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 143private static ExceptionDispatchInfo CaptureException(Action assertion) 152return ExceptionDispatchInfo.Capture(ex);
Templates.Tests (6)
src\Shared\E2ETesting\BrowserTestBase.cs (2)
17private ExceptionDispatchInfo _exceptionDispatchInfo; 85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (4)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 143private static ExceptionDispatchInfo CaptureException(Action assertion) 152return ExceptionDispatchInfo.Capture(ex);
Test.Utilities (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
77ExceptionDispatchInfo.Throw(ex.InnerException);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Text.Analyzers (3)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.cs (1)
79ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (1)
53ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
Wasm.Performance.ConsoleHost (1)
ConsoleHostRenderer.cs (1)
24ExceptionDispatchInfo.Capture(exception).Throw();
Wasm.Performance.Driver (2)
Program.cs (2)
300ExceptionDispatchInfo edi = null; 309edi = ExceptionDispatchInfo.Capture(ex);
WindowsBase.Tests (4)
Helpers.cs (4)
18ExceptionDispatchInfo? edi = null; 27edi = ExceptionDispatchInfo.Capture(e); 43ExceptionDispatchInfo? edi = null; 52edi = ExceptionDispatchInfo.Capture(e);
xunit.assert (1)
MultipleAsserts.cs (1)
48 ExceptionDispatchInfo.Capture(exceptions[0]).Throw();