示例#1
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Log = LogDto.FromLog(_eventStore.Query <Log>(request.LogId))
 };
示例#2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Logs = _eventStore.Query <Log>().Select(x => LogDto.FromLog(x)).ToList()
 };