Пример #1
0
 public Task <Boo> Process(Query query, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_repository.GetElement(query.Id)));
 }
Пример #2
0
 public Task <Boo> Handle(GetBooRequest request, CancellationToken cancellationToken)
 {
     return(Task.FromResult(_repository.GetElement(request.Id)));
 }