コード例 #1
0
 public async Task <IEnumerable <Transaction> > Get(int?limit)
 {
     return(await _dispatcher.DispatchQueryAsync(new GetTransactions(limit)));
 }
コード例 #2
0
 public async Task <Address> Get(string address)
 {
     return(await _dispatcher.DispatchQueryAsync(new GetAddress(address)));
 }
コード例 #3
0
 public async Task <Price> Get()
 {
     return(await _dispatcher.DispatchQueryAsync(new GetPrice("AKA")));
 }
コード例 #4
0
 public async Task <Stats> Get()
 {
     return(await _dispatcher.DispatchQueryAsync(new GetNetworkStats()));
 }
コード例 #5
0
 public async Task <IEnumerable <Block> > Get(int?limit)
 {
     return(await _dispatcher.DispatchQueryAsync(new GetBlocks(limit)));
 }
コード例 #6
0
 public async Task <IEnumerable <Price> > Get()
 {
     return(await _dispatcher.DispatchQueryAsync(new GetPrice()));
 }
コード例 #7
0
        public async Task <IActionResult> Get(Guid id)
        {
            var result = await _dispatcher.DispatchQueryAsync(new GetPerson(new PersonId(id)));

            return(Ok(result));
        }
コード例 #8
0
        public async Task <IEnumerable <Quote> > GetAsync()
        {
            var quotes = await _dispatcher.DispatchQueryAsync(new GetAllQuotes());

            return(quotes.Select(quote => new Quote(quote.Id, quote.Phrase, quote.Attribution, quote.CreatedAt, quote.UpdatedAt)));
        }