protected void Scraping_ExecutingStateChanged(object sender, ExecutingStateEventArgs e) { if (ExecutingStateChanged != null) { ExecutingStateChanged.Invoke(this, e); } }
protected virtual void OnExecutingStateChanged(ExecutingStateEventArgs e) { if (ExecutingStateChanged != null) { ExecutingStateChanged.Invoke(this, e); } }
public void Notify(string message, NotifyStatus reportState) { if (ExecutingStateChanged != null) { var eventArgs = new ExecutingStateEventArgs() { ExecDate = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"), Message = message, NotifyStatus = reportState, }; ExecutingStateChanged.Invoke(this, eventArgs); } }