public InstrumentedCall(int id, IInstrumentedMethod method, string calledMethod, int instructionOffset, IObservable <IObservableInstance> observableInstances) { InstrumentedCallId = id; Method = method; CalledMethod = calledMethod; InstructionOffset = instructionOffset; ObservableInstances = observableInstances; }
private IInstrumentedCall CreateInstrumentedCall(IInstrumentedMethod method, NewInstrumentedCall c) { var observableInstances = mObservableInstancesByCall .WatchValue(c.Id) .Take(1) .SelectMany(obses => obses); return(new InstrumentedCall(c.Id, method, c.CalledMethod, c.InstructionOffset, observableInstances)); }
public void RemoveMethod(IInstrumentedMethod method) { mMethods.RemoveKey(method.InstrumentedMethodId); }
public void AddMethod(IInstrumentedMethod method) { mMethods.AddOrUpdate(method); }