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