Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 2
0
 private Task Query_OnAborted(object Sender, QueryEventArgs e)
 {
     return(this.Abort(e));
 }
Ejemplo n.º 3
0
 private Task Query_OnDone(object Sender, QueryEventArgs e)
 {
     return(this.Done(e));
 }
Ejemplo n.º 4
0
 private Task Query_OnEndSection(object Sender, QueryEventArgs e)
 {
     return(this.EndSection(e));
 }
Ejemplo n.º 5
0
 internal Task EndSection(QueryEventArgs e)
 {
     return(this.Raise(this.OnEndSection, e));
 }
Ejemplo n.º 6
0
 internal Task Done(QueryEventArgs e)
 {
     return(this.Raise(this.OnDone, e));
 }
Ejemplo n.º 7
0
 internal Task Start(QueryEventArgs e)
 {
     return(this.Raise(this.OnStarted, e));
 }
Ejemplo n.º 8
0
 private void Query_OnEndSection(object Sender, QueryEventArgs e)
 {
     this.EndSection(e);
 }
Ejemplo n.º 9
0
 private void Query_OnDone(object Sender, QueryEventArgs e)
 {
     this.Done(e);
 }
Ejemplo n.º 10
0
 private void Query_OnStarted(object Sender, QueryEventArgs e)
 {
     this.Start(e);
 }
Ejemplo n.º 11
0
 internal void EndSection(QueryEventArgs e)
 {
     this.Raise(this.OnEndSection, e);
 }
Ejemplo n.º 12
0
 internal void Done(QueryEventArgs e)
 {
     this.Raise(this.OnDone, e);
 }
Ejemplo n.º 13
0
 internal void Start(QueryEventArgs e)
 {
     this.Raise(this.OnStarted, e);
 }
Ejemplo n.º 14
0
 internal void Abort(QueryEventArgs e)
 {
     this.Raise(this.OnAborted, e);
 }