/// <summary> /// 系统事件 /// </summary> private void OnSystemEvent(ServiceEventArgs msg) { try { if (msg.Message != null) { new WarningException(msg.Message).Log(); } SystemEvent?.Invoke(msg); } catch (Exception ex) { ex.Log(); } }
public void RaiseSystemEvent(object sender, XSystemEvent systemEvent) { SystemEvent?.Invoke(sender, systemEvent); }
private async void OnSystemEvent() { await Task.Yield(); SystemEvent?.Invoke(this, new EventArgs()); }
protected virtual void OnSystemEvent(SystemListenerEventArgs e) { SystemEvent?.Invoke(this, e); }