private void EventBroker_Queries(object sender, DAPQuery e)
        {
            var ac = e as AgeQuery <Person>;

            if (ac != null && ac.Target == this)
            {
                ac.Result = _age;
            }
        }
 public T ExecuteQuery <T>(DAPQuery query)
 {
     Queries?.Invoke(this, query);
     return((T)query.Result);
 }
Пример #3
0
 public virtual void EventBroker_Queries(object sender, DAPQuery e)
 {
     execute_cq("q", e);
 }