コード例 #1
0
        public T SendMessage <T>(IYateMessageResponse <T> message)
        {
            var result = SendMessage(message.Name, message.Result, message.Parameters.ToArray());

            return(message.ParseResponse(result, _serializer));
        }
コード例 #2
0
        public async Task <T> SendMessageAsync <T>(IYateMessageResponse <T> message, CancellationToken cancellationToken)
        {
            var result = await SendMessageAsync(message.Name, message.Result, cancellationToken, message.Parameters.ToArray()).ConfigureAwait(false);

            return(message.ParseResponse(result, _serializer));
        }