예제 #1
0
 private async Task Raise(QueryMessageEventHandler Callback, QueryMessageEventArgs e)
 {
     if (!this.isAborted && !this.isDone && Callback != null)
     {
         try
         {
             await Callback(this, e);
         }
         catch (Exception ex)
         {
             Log.Critical(ex);
         }
     }
 }
예제 #2
0
 private Task Query_OnMessage(object Sender, QueryMessageEventArgs e)
 {
     return(this.LogMessage(e));
 }
예제 #3
0
 private void Query_OnMessage(object Sender, QueryMessageEventArgs e)
 {
     this.LogMessage(e);
 }
예제 #4
0
 internal Task LogMessage(QueryMessageEventArgs e)
 {
     return(this.Raise(this.OnMessage, e));
 }
예제 #5
0
 internal void LogMessage(QueryMessageEventArgs e)
 {
     this.Raise(this.OnMessage, e);
 }