Here are the examples of the csharp api class System.Collections.Concurrent.ConcurrentBag.Add(System.Runtime.ExceptionServices.ExceptionDispatchInfo) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
0
1. Example
Project: Qactive
Source File: QbservableProtocol.cs
Source File: QbservableProtocol.cs
public void CancelAllCommunication() { try { protocolCancellation.Cancel(); } catch (AggregateException ex) { exceptions.Add(ExceptionDispatchInfo.Capture(ex)); } catch (OperationCanceledException) { } }
0
2. Example
Project: Qactive
Source File: QbservableProtocol.cs
Source File: QbservableProtocol.cs
public void CancelAllCommunication(ExceptionDispatchInfo exception) { exceptions.Add(exception); if (!protocolCancellation.IsCancellationRequested) { ShutdownReason |= QbservableProtocolShutdownReason.ServerError; CancelAllCommunication(); } }
0
3. Example
Project: Qactive
Source File: QbservableProtocol.cs
Source File: QbservableProtocol.cs
protected void AddError(ExceptionDispatchInfo exception) { Contract.Requires(exception != null); exceptions.Add(exception); }
0
4. Example
Project: Qactive
Source File: QbservableProtocol.cs
Source File: QbservableProtocol.cs
private async Task SendObservableAsync(object untypedObservable, Type dataType, bool sendServerError/n ..... /n //View Source file for more details /n }