1 instantiation of ExceptionDispatchInfo
mscorlib (1)
system\runtime\exceptionservices\exceptionservicescommon.cs (1)
109return new ExceptionDispatchInfo(source);
83 references to ExceptionDispatchInfo
mscorlib (52)
system\AggregateException.cs (7)
186internal AggregateException(IEnumerable<ExceptionDispatchInfo> innerExceptionInfos) : 204internal AggregateException(string message, IEnumerable<ExceptionDispatchInfo> innerExceptionInfos) 207: this(message, innerExceptionInfos as IList<ExceptionDispatchInfo> ?? 209(List<ExceptionDispatchInfo>)null : 210new List<ExceptionDispatchInfo>(innerExceptionInfos))) 226private AggregateException(string message, IList<ExceptionDispatchInfo> innerExceptionInfos) 242var edi = innerExceptionInfos[i];
system\exception.cs (1)
808internal void RestoreExceptionDispatchInfo(System.Runtime.ExceptionServices.ExceptionDispatchInfo exceptionDispatchInfo)
system\io\stream.cs (2)
996private ExceptionDispatchInfo _exceptionInfo; 1013_exceptionInfo = ExceptionDispatchInfo.Capture(ex);
system\Lazy.cs (2)
83internal ExceptionDispatchInfo m_edi; 86m_edi = ExceptionDispatchInfo.Capture(ex);
system\runtime\compilerservices\AsyncMethodBuilder.cs (5)
1010var edi = ExceptionDispatchInfo.Capture(exception); 1018targetContext.Post(state => ((ExceptionDispatchInfo)state).Throw(), edi); 1025edi = ExceptionDispatchInfo.Capture(new AggregateException(exception, postException)); 1034ThreadPool.QueueUserWorkItem(state => ((ExceptionDispatchInfo)state).Throw(), edi);
system\runtime\compilerservices\TaskAwaiter.cs (1)
173var oceEdi = task.GetCancellationExceptionDispatchInfo();
system\runtime\exceptionservices\exceptionservicescommon.cs (1)
102public static ExceptionDispatchInfo Capture(Exception source)
system\threading\Tasks\Future.cs (2)
587(exceptionObject is ExceptionDispatchInfo) || (exceptionObject is IEnumerable<ExceptionDispatchInfo>),
system\threading\Tasks\Task.cs (9)
2121internal ReadOnlyCollection<ExceptionDispatchInfo> GetExceptionDispatchInfos() 2127new ReadOnlyCollection<ExceptionDispatchInfo>(new ExceptionDispatchInfo[0]); 2132internal ExceptionDispatchInfo GetCancellationExceptionDispatchInfo() 6132List<ExceptionDispatchInfo> observedExceptions = null; 6146if (observedExceptions == null) observedExceptions = new List<ExceptionDispatchInfo>(); 6377List<ExceptionDispatchInfo> observedExceptions = null; 6391if (observedExceptions == null) observedExceptions = new List<ExceptionDispatchInfo>(); 7283ExceptionDispatchInfo oceEdi;
system\threading\Tasks\TaskCompletionSource.cs (1)
213internal bool TrySetException(IEnumerable<ExceptionDispatchInfo> exceptions)
system\threading\Tasks\TaskContinuation.cs (3)
857var edi = ExceptionDispatchInfo.Capture(exc); 858ThreadPool.QueueUserWorkItem(s => ((ExceptionDispatchInfo)s).Throw(), edi);
system\threading\Tasks\TaskExceptionHolder.cs (18)
51private volatile List<ExceptionDispatchInfo> m_faultExceptions; 53private ExceptionDispatchInfo m_cancellationException; 109foreach (ExceptionDispatchInfo edi in m_faultExceptions) 192exceptionObject is ExceptionDispatchInfo || exceptionObject is IEnumerable<ExceptionDispatchInfo>, 222m_cancellationException = ExceptionDispatchInfo.Capture(oce); 226var edi = exceptionObject as ExceptionDispatchInfo; 247if (exceptions == null) m_faultExceptions = exceptions = new List<ExceptionDispatchInfo>(1); 254exceptions.Add(ExceptionDispatchInfo.Capture(exception)); 259var edi = exceptionObject as ExceptionDispatchInfo; 279exceptions.Add(ExceptionDispatchInfo.Capture(exc)); 288var ediColl = exceptionObject as IEnumerable<ExceptionDispatchInfo>; 403internal ReadOnlyCollection<ExceptionDispatchInfo> GetExceptionDispatchInfos() 409return new ReadOnlyCollection<ExceptionDispatchInfo>(exceptions); 419internal ExceptionDispatchInfo GetCancellationExceptionDispatchInfo() 421var edi = m_cancellationException;
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlUtil.cs (1)
159ExceptionDispatchInfo.Capture(ae.InnerException).Throw();
System.Web (30)
AspNetSynchronizationContext.cs (2)
46internal override ExceptionDispatchInfo ExceptionDispatchInfo { 153_state.Helper.Error = ExceptionDispatchInfo.Capture(ex);
AspNetSynchronizationContextBase.cs (2)
26ExceptionDispatchInfo dispatchInfo = ExceptionDispatchInfo; 30internal abstract ExceptionDispatchInfo ExceptionDispatchInfo { get; }
Compilation\BuildProvidersCompiler.cs (2)
222ExceptionDispatchInfo.Capture(ae.GetBaseException()).Throw(); 792ExceptionDispatchInfo.Capture(e.GetBaseException()).Throw();
Hosting\ApplicationManager.cs (1)
954ExceptionDispatchInfo customLoaderException = ProcessHost.GetExistingCustomLoaderFailureAndClear(appId);
Hosting\AsyncResultBase.cs (3)
27private volatile ExceptionDispatchInfo _error; 85_error = ExceptionDispatchInfo.Capture(error); 92internal ExceptionDispatchInfo Error { get { return _error; } }
Hosting\ProcessHost.cs (7)
286private static KeyValuePair<string, ExceptionDispatchInfo> _customLoaderStartupError; 1175internal static ExceptionDispatchInfo GetExistingCustomLoaderFailureAndClear(string appId) { 1178_customLoaderStartupError = default(KeyValuePair<string, ExceptionDispatchInfo>); 1186private static void SetCustomLoaderFailure(string appId, ExceptionDispatchInfo error) { 1187_customLoaderStartupError = new KeyValuePair<string, ExceptionDispatchInfo>(appId, error); 1225SetCustomLoaderFailure(appId, ExceptionDispatchInfo.Capture(ex)); 1244SetCustomLoaderFailure(appId, ExceptionDispatchInfo.Capture(ex));
HttpApplication.cs (3)
4370private ExceptionDispatchInfo _error; 4390_error = (error != null) ? ExceptionDispatchInfo.Capture(error) : null; 4432ExceptionDispatchInfo error = _error;
LegacyAspNetSynchronizationContext.cs (3)
27private ExceptionDispatchInfo _error; 65_error = ExceptionDispatchInfo.Capture(e); 85internal override ExceptionDispatchInfo ExceptionDispatchInfo {
Util\SynchronizationHelper.cs (3)
34public ExceptionDispatchInfo Error { get; set; } 162Error = ExceptionDispatchInfo.Capture(ex); 199Error = ExceptionDispatchInfo.Capture(ex);
WebSocketPipeline.cs (4)
54private ExceptionDispatchInfo DoFlush() { 64return ExceptionDispatchInfo.Capture(ex); 82ExceptionDispatchInfo flushExceptionDispatchInfo = DoFlush(); 114ExceptionDispatchInfo exception = syncContext.ExceptionDispatchInfo;