Example #1
0
 /// <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();
     }
 }
Example #2
0
 public void RaiseSystemEvent(object sender, XSystemEvent systemEvent)
 {
     SystemEvent?.Invoke(sender, systemEvent);
 }
        private async void OnSystemEvent()
        {
            await Task.Yield();

            SystemEvent?.Invoke(this, new EventArgs());
        }
Example #4
0
 protected virtual void OnSystemEvent(SystemListenerEventArgs e)
 {
     SystemEvent?.Invoke(this, e);
 }