public Task <IEnumerable <string> > Handle(DefaultGetQuery request, CancellationToken cancellationToken) { return(Task.FromResult(new List <string> { "Cheguei aqui via MediatR" } as IEnumerable <string>)); }
public async Task <IEnumerable <string> > Get() { var query = new DefaultGetQuery(); return(await _mediator.Send(query)); }