public static void Start () { TestBase.GlibSync (); lock (locking) { if (singleton == null) singleton = new EventMonitor (); xmlResult = String.Empty; } }
private static EventCollection StopWithResult (bool ignoreNotStarted) { lock (locking) { if (singleton == null) { if (ignoreNotStarted) return null; throw new Exception ("EventMonitor has not been started yet"); } try { p.Kill (); } catch (InvalidOperationException) { } p.Dispose (); p = null; string result = xmlResult; xmlResult = String.Empty; singleton = null; return new EventCollection (result); } }
protected void StartEventMonitor() { events = null; EventMonitor.Start(); }