7 references to AsError
System.ServiceModel.Http (4)
System\ServiceModel\Channels\WebSocketHelper.cs (4)
147Exception exception = FxTrace.Exception.AsError<OperationCanceledException>(aggregationException); 177Exception exception = FxTrace.Exception.AsError<Exception>(ex); 192throw FxTrace.Exception.AsError<CommunicationException>(task.Exception); 205return FxTrace.Exception.AsError<CommunicationException>(task.Exception);
System.ServiceModel.Primitives (3)
Internals\System\Runtime\ExceptionTrace.cs (1)
106return AsError<Exception>(aggregateException);
Internals\System\Runtime\TaskHelpers.cs (1)
24throw Fx.Exception.AsError<TException>(task.Exception);
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
98throw FxTrace.Exception.AsError<FaultException>(ae);