public void UpdateResult(TraceResult results) { if (_tr == null) _tr = new TraceResult(); _tr.tracedSegmentOids = new List<long>(); foreach (var oid in results.tracedSegmentOids) _tr.tracedSegmentOids.Add(oid); }
public async Task ModifyTrace(INetworkResult results) { //custom tracing behavior await System.Threading.Tasks.Task.Delay(1000); //results TraceResult tr = new TraceResult(); tr.tracedSegmentOids = new List<long>() { 10, 123, 15, 9, 345, 634 }; results.UpdateResult(tr); }
public void Dispose() { _tr = null; _sb = null; }