Exemple #1
0
		public static void Start () {
			TestBase.GlibSync ();
			lock (locking) {
				if (singleton == null)
					singleton = new EventMonitor ();
				xmlResult = String.Empty;
			}
		}
Exemple #2
0
		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);
			}
		}
Exemple #3
0
 protected void StartEventMonitor()
 {
     events = null;
     EventMonitor.Start();
 }