Esempio n. 1
0
        public async Task <string> Ping()
        {
            var version = (await _handlerDispatcher.Handle <PingQuery, string>(new PingQuery())).Data;

            return(version);
        }
Esempio n. 2
0
 public async Task <ApiResult> GetAll()
 {
     return(await _handlerDispatcher.Handle <GetAllToDoQuery, List <ToDo> >(new GetAllToDoQuery()));
 }