Esempio n. 1
0
 public Task <TQueryResult> Query <TQueryResult>(QueryBase <TQueryResult> query, Action <MessageExecuteSetting> configuration = null) where TQueryResult : class
 {
     return(Task <TQueryResult> .Factory.StartNew(() => dispatcher.Query(query, configuration)));
 }
Esempio n. 2
0
 public TQueryResult Query <TQueryResult>(QueryBase <TQueryResult> query, Action <MessageExecuteSetting> configuration = null)
 {
     configuration.Do(action => action(outerSetting));
     return(dispatcher.Query(query, outerSetting));
 }