public void DeleteEventRequest(IEventRequest request) { Contract.Requires <ArgumentNullException>(request != null, "request"); Contract.Requires <VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(request.GetVirtualMachine())); throw new NotImplementedException(); }
private static void SetEventProperties(DebugEvent debugEvent, IEventRequest request, SuspendPolicy suspendPolicy, IVirtualMachine virtualMachine, IThreadReference thread, bool manualResume) { Contract.Requires <ArgumentNullException>(debugEvent != null, "debugEvent"); debugEvent.Properties.AddProperty(typeof(IEventRequest), request); debugEvent.Properties.AddProperty(typeof(SuspendPolicy), suspendPolicy); debugEvent.Properties.AddProperty(typeof(IVirtualMachine), virtualMachine); debugEvent.Properties.AddProperty(typeof(IThreadReference), thread); debugEvent.Properties.AddProperty("ManualResume", manualResume); }
public void Attach(int port) { LogProvider.Log("Attempting connection at port {0}...", port); MDS.VirtualMachineManager.DefaultTimeout = 500; vm = MDS.VirtualMachineManager.Connect(new IPEndPoint(IPAddress.Loopback, port)); vm.EnableEvents( MDS.EventType.AppDomainCreate, MDS.EventType.AppDomainUnload, MDS.EventType.VMStart, MDS.EventType.VMDeath, MDS.EventType.VMDisconnect, MDS.EventType.AssemblyLoad, MDS.EventType.AssemblyUnload, MDS.EventType.ThreadStart, MDS.EventType.ThreadDeath ); methodEntryRequest = new EventRequest(vm.CreateMethodEntryRequest()); QueueUserWorkItem(EventLoop); }
private static void SetEventProperties(DebugEvent debugEvent, IEventRequest request, SuspendPolicy suspendPolicy, IVirtualMachine virtualMachine, IThreadReference thread, bool manualResume) { Contract.Requires<ArgumentNullException>(debugEvent != null, "debugEvent"); debugEvent.Properties.AddProperty(typeof(IEventRequest), request); debugEvent.Properties.AddProperty(typeof(SuspendPolicy), suspendPolicy); debugEvent.Properties.AddProperty(typeof(IVirtualMachine), virtualMachine); debugEvent.Properties.AddProperty(typeof(IThreadReference), thread); debugEvent.Properties.AddProperty("ManualResume", manualResume); }
public Event(IThreadMirror thread) : base(null) { threadMirror = thread; request = null; }
public void DeleteEventRequest(IEventRequest request) { throw new NotImplementedException(); }
/// <summary> /// Create an instance of the event request builder class. /// /// Initialize the event request to build. /// </summary> public EventRequestBuilder() { this.eventRequest = new EventRequest(); }
public void Attach(int port) { LogProvider.Log ("Attempting connection at port {0}...", port); vm = MDS.VirtualMachineManager.Connect (new IPEndPoint (IPAddress.Loopback, port)); vm.EnableEvents ( MDS.EventType.AppDomainCreate, MDS.EventType.AppDomainUnload, MDS.EventType.VMStart, MDS.EventType.VMDeath, MDS.EventType.VMDisconnect, MDS.EventType.AssemblyLoad, MDS.EventType.AssemblyUnload ); methodEntryRequest = new EventRequest (vm.CreateMethodEntryRequest ()); QueueUserWorkItem (EventLoop); }
public void DeleteEventRequest(IEventRequest request) { Contract.Requires<ArgumentNullException>(request != null, "request"); Contract.Requires<VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(request.GetVirtualMachine())); throw new NotImplementedException(); }