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