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 }); }
public string get_fast_partial() { var input = new FastInput { Name = "Malcolm Reynolds" }; _request.Set(input); var chain = _resolver.FindUniqueByType(typeof(FastInput)); var output = _partialInvoker.InvokeFast(chain, input).As <FastOutput>(); return("The name was " + output.Name); }