private async Task Raise(QueryEventHandler Callback, QueryEventArgs e) { if (!this.isAborted && !this.isDone && Callback != null) { try { await Callback(this, e); } catch (Exception ex) { Log.Critical(ex); } } }
private Task Query_OnAborted(object Sender, QueryEventArgs e) { return(this.Abort(e)); }
private Task Query_OnDone(object Sender, QueryEventArgs e) { return(this.Done(e)); }
private Task Query_OnEndSection(object Sender, QueryEventArgs e) { return(this.EndSection(e)); }
internal Task EndSection(QueryEventArgs e) { return(this.Raise(this.OnEndSection, e)); }
internal Task Done(QueryEventArgs e) { return(this.Raise(this.OnDone, e)); }
internal Task Start(QueryEventArgs e) { return(this.Raise(this.OnStarted, e)); }
private void Query_OnEndSection(object Sender, QueryEventArgs e) { this.EndSection(e); }
private void Query_OnDone(object Sender, QueryEventArgs e) { this.Done(e); }
private void Query_OnStarted(object Sender, QueryEventArgs e) { this.Start(e); }
internal void EndSection(QueryEventArgs e) { this.Raise(this.OnEndSection, e); }
internal void Done(QueryEventArgs e) { this.Raise(this.OnDone, e); }
internal void Start(QueryEventArgs e) { this.Raise(this.OnStarted, e); }
internal void Abort(QueryEventArgs e) { this.Raise(this.OnAborted, e); }