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); } } }
private Task Query_OnMessage(object Sender, QueryMessageEventArgs e) { return(this.LogMessage(e)); }
private void Query_OnMessage(object Sender, QueryMessageEventArgs e) { this.LogMessage(e); }
internal Task LogMessage(QueryMessageEventArgs e) { return(this.Raise(this.OnMessage, e)); }
internal void LogMessage(QueryMessageEventArgs e) { this.Raise(this.OnMessage, e); }