示例#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);
 }