public int Handle(QuerySomethingWithNonReferenceTypeResult query) { base.Handle <QuerySomethingWithNonReferenceTypeResult, int>(query); TestOutputHelper.WriteLine($"Query result: {query.Data}."); return(query.Data); }
public Task <int> HandleAsync(QuerySomethingWithNonReferenceTypeResult query, CancellationToken cancellationToken = default(CancellationToken)) { base.HandleAsync <QuerySomethingWithNonReferenceTypeResult, int>(query); TestOutputHelper.WriteLine($"Query result: {query.Data}."); return(Task.FromResult(query.Data)); }