示例#1
0
 protected bool CallApi(object sender, ApiEventArgs <T> data)
 {
     if (ApiInvoke == null)
     {
         return(false);
     }
     ApiInvoke(sender, data); return(true);
 }
示例#2
0
 virtual public bool Call(ApiEventArgs <T> data)
 {
     return(Call(null, data));
 }
示例#3
0
 /// <summary>External Trigger</summary>
 virtual public bool Call(object sender, ApiEventArgs <T> data)
 {
     return(FilterCall(sender, data));
 }
示例#4
0
 /// <returns>true if OnApi handles the call</returns>
 virtual protected bool OnApi(object sender, ApiEventArgs <T> args)
 {
     return(false);
 }