private void ProcessCompleted(string strReturn) { try { try { EventsArgs eArgs = new EventsArgs(); processCompletedEvent.RaiseProcessCompletedEvent(eArgs); } catch (Exception ex) { Console.WriteLine("Error : " + ex.StackTrace); } try { EventsArgs eArgs1 = new EventsArgs(strReturn); processCompletedEventAllParsers.RaiseProcessCompletedEvent(eArgs1); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error : " + ex.StackTrace); } processCompletedEvent.UnSubscribeProcessCompletedHandler(); threadStartedEvent.UnSubscribeProcessCompletedHandler(); threadCompletedEvent.UnSubscribeProcessCompletedHandler(); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error : " + ex.StackTrace); } }
private void ThreadStarted() { try { EventsArgs eArgs = new EventsArgs(); threadStartedEvent.RaiseProcessCompletedEvent(eArgs); } catch (Exception ex) { GlobusLogHelper.log.Error(" Error : " + ex.StackTrace); } }