public ClientResponse ExecuteQuery(ClientQuery query) { var chain = _messageTypes.FindChain(query.type); var output = _invoker.InvokeFast(chain, query.query); return(new ClientResponse { request = query.type, type = chain.ResourceType().GetMessageName(), result = output, correlationId = query.correlationId }); }
public async Task <ClientResponse> ExecuteQuery(ClientQuery query) { var chain = _messageTypes.FindChain(query.type); var output = await _invoker.InvokeFast(chain, query.query).ConfigureAwait(false); return(new ClientResponse { request = query.type, type = chain.ResourceType().GetMessageName(), result = output, correlationId = query.correlationId }); }