214 references to Capture
Binding.Tcp.IntegrationTests (1)
OperationContextAsyncFlowTests.cs (1)
124ExceptionDispatchInfo.Capture(callbackService.Exception).Throw();
GenerateDocumentationAndConfigFiles (2)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
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 (4)
ErrorBoundaryBase.cs (4)
77ExceptionDispatchInfo.Capture(exception).Throw(); 98ExceptionDispatchInfo.Capture(onExceptionTask.Exception!).Throw(); 113ChildContent = _ => ExceptionDispatchInfo.Capture(exception).Throw(); 114ErrorContent = _ => _ => ExceptionDispatchInfo.Capture(exception).Throw();
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 (3)
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (3)
88edi = ExceptionDispatchInfo.Capture(exception); 103edi = ExceptionDispatchInfo.Capture(exception); 217edi = ExceptionDispatchInfo.Capture(new InvalidOperationException($"The exception handler configured on {nameof(ExceptionHandlerOptions)} produced a 404 status response. " +
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\Server\UnaryServerMethodInvoker.cs (1)
118var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
Microsoft.AspNetCore.Hosting (6)
GenericHost\GenericWebHostBuilder.cs (2)
107var capture = ExceptionDispatchInfo.Capture(ex); 260startupError = ExceptionDispatchInfo.Capture(ex);
Internal\WebHost.cs (1)
115_applicationServicesException = ExceptionDispatchInfo.Capture(ex);
Startup\ConventionBasedStartup.cs (2)
28ExceptionDispatchInfo.Capture(ex.InnerException!).Throw(); 41ExceptionDispatchInfo.Capture(ex.InnerException!).Throw();
WebHostBuilder.cs (1)
339var capture = ExceptionDispatchInfo.Capture(ex);
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
91_initializationException = ExceptionDispatchInfo.Capture(e);
Microsoft.AspNetCore.Mvc.Core (14)
Formatters\SystemTextJsonOutputFormatter.cs (1)
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 (1)
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 (1)
Filters\MiddlewareFilterBuilderTest.cs (1)
255exceptionInfo = ExceptionDispatchInfo.Capture(ex);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonInputFormatter.cs (1)
201var exceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageActionInvoker.cs (1)
666ExceptionDispatchInfo = ExceptionDispatchInfo.Capture(exception),
Microsoft.AspNetCore.Server.IIS (2)
Core\EmptyStream.cs (1)
81ExceptionDispatchInfo.Capture(_error).Throw();
Core\HttpRequestStream.cs (1)
129ExceptionDispatchInfo.Capture(_error).Throw();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpRequestPipeReader.cs (1)
98_error ??= ExceptionDispatchInfo.Capture(error);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Internal\QuicConnectionContext.cs (1)
86_abortReason = ExceptionDispatchInfo.Capture(abortReason);
Microsoft.AspNetCore.SignalR.Protocols.Json (5)
Protocol\JsonHubProtocol.cs (5)
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 (5)
Protocol\NewtonsoftJsonHubProtocol.cs (5)
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.Build (6)
BackEnd\BuildManager\BuildManager.cs (3)
1078ExceptionDispatchInfo.Capture(ae.InnerExceptions[0]).Throw(); 2126submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.Exception); 2876_threadException = ExceptionDispatchInfo.Capture(e);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
239ExceptionDispatchInfo.Capture(e)); 310ExceptionDispatchInfo.Capture(e));
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
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.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
303ExceptionDispatchInfo.Capture(_exception).Throw();
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
151new[] { new ThrowExceptionForEachNamedTypeAnalyzer(ExceptionDispatchInfo.Capture(exception)) },
Microsoft.CodeAnalysis.Workspaces (2)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
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 (2)
TestExportJoinableTaskContext+DenyExecutionSynchronizationContext.cs (2)
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 (2)
FileConfigurationProvider.cs (2)
72HandleException(ExceptionDispatchInfo.Capture(new FileNotFoundException(error.ToString()))); 108HandleException(ExceptionDispatchInfo.Capture(exception));
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.JSInterop (3)
Infrastructure\DotNetDispatcher.cs (3)
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();
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 (1)
System\Diagnostics\AsyncStreamReader.cs (1)
249ThreadPool.QueueUserWorkItem(edi => ((ExceptionDispatchInfo)edi!).Throw(), ExceptionDispatchInfo.Capture(e));
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
34callbackContext->_exception = ExceptionDispatchInfo.Capture(e);
System.IO.Pipelines (1)
System\IO\Pipelines\PipeCompletion.cs (1)
29_state = ExceptionDispatchInfo.Capture(exception);
System.Net.Security (7)
System\Net\Security\NegotiateStream.cs (2)
27private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(NegotiateStream), (string?)null)); 705_exception = ExceptionDispatchInfo.Capture(e);
System\Net\Security\SslStream.cs (1)
45private static readonly ExceptionDispatchInfo s_disposedSentinel = ExceptionDispatchInfo.Capture(new ObjectDisposedException(nameof(SslStream), (string?)null));
System\Net\Security\SslStream.IO.cs (4)
48_exception ??= ExceptionDispatchInfo.Capture(e); 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)));
System.Net.Sockets (1)
System\Net\Sockets\Socket.cs (1)
967lastex = ExceptionDispatchInfo.Capture(ex);
System.Net.WebClient (1)
src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
99_error = ExceptionDispatchInfo.Capture(exception);
System.Private.CoreLib (14)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
34callbackContext->_exception = ExceptionDispatchInfo.Capture(e);
src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
87_exceptionDispatch = ExceptionDispatchInfo.Capture(exception);
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (1)
60public static void Throw(Exception source) => Capture(source).Throw();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (2)
141context->CreationException = ExceptionDispatchInfo.Capture(ex); 176context->CreationException = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (2)
186edi = ExceptionDispatchInfo.Capture(ex); 271edi = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (2)
75_error = ExceptionDispatchInfo.Capture(error); 354edi = ExceptionDispatchInfo.Capture(ex);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
1903var edi = ExceptionDispatchInfo.Capture(exception); 1918edi = ExceptionDispatchInfo.Capture(new AggregateException(exception, postException));
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (3)
124m_cancellationException = ExceptionDispatchInfo.Capture(oce); 153exceptions.Add(ExceptionDispatchInfo.Capture(exception)); 176exceptions.Add(ExceptionDispatchInfo.Capture(exc));
System.Reflection.Metadata (1)
System\Reflection\PortableExecutable\PEReader.cs (1)
762ExceptionDispatchInfo.Capture(errorToReport).Throw();
System.Resources.Extensions (2)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
58throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException(); 79throw ExceptionDispatchInfo.Capture(ex.InnerException!).SourceException.ConvertToSerializationException();
System.Text.Json (6)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (2)
267ExceptionDispatchInfo edi = ExceptionDispatchInfo.Capture(ex); 344candidate = new CacheEntry(ExceptionDispatchInfo.Capture(nse));
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
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 (2)
System\Threading\Channels\AsyncOperation.cs (2)
151_error = ExceptionDispatchInfo.Capture(exception); 166_error = ExceptionDispatchInfo.Capture(new OperationCanceledException(cancellationToken));
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
169ExceptionDispatchInfo.Capture(ex).Throw();
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
302ExceptionDispatchInfo edi = ExceptionDispatchInfo.Capture(error);
System.Windows.Forms (1)
System\Windows\Forms\Application.ThreadContext.cs (1)
600ExceptionDispatchInfo.Capture(ex).Throw();
System.Windows.Forms.TestUtilities (1)
PropertyGridInternal\SubPropertyGrid.cs (1)
78ExceptionDispatchInfo.Capture(exception).Throw();
System.Windows.Forms.UI.IntegrationTests (2)
Infra\DenyExecutionSynchronizationContext.cs (2)
54_failedTransfer.Value = ExceptionDispatchInfo.Capture(e); 73_failedTransfer.Value = ExceptionDispatchInfo.Capture(e);
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (2)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 152return ExceptionDispatchInfo.Capture(ex);
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (2)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 152return ExceptionDispatchInfo.Capture(ex);
Templates.Mvc.Tests (3)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (2)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 152return ExceptionDispatchInfo.Capture(ex);
Templates.Tests (3)
src\Shared\E2ETesting\BrowserTestBase.cs (1)
85_exceptionDispatchInfo = ExceptionDispatchInfo.Capture(ex);
src\Shared\E2ETesting\WaitAssert.cs (2)
134var exceptionInfo = lastException != null ? ExceptionDispatchInfo.Capture(lastException) : 152return ExceptionDispatchInfo.Capture(ex);
Test.Utilities (2)
src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
132ExceptionDispatchInfo.Capture(e.InnerException).Throw();
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 (1)
Program.cs (1)
309edi = ExceptionDispatchInfo.Capture(ex);
WindowsBase.Tests (2)
Helpers.cs (2)
27edi = ExceptionDispatchInfo.Capture(e); 52edi = ExceptionDispatchInfo.Capture(e);
xunit.assert (1)
MultipleAsserts.cs (1)
48 ExceptionDispatchInfo.Capture(exceptions[0]).Throw();