Пример #1
0
        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
            });
        }
Пример #2
0
        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
            });
        }