public Message SerializeReply(MessageVersion messageVersion, object[] parameters, object result)
        {
            Message message = _innerDispatchFormatter.SerializeReply(messageVersion, parameters, result);

            if (_controller != null)
            {
                _controller.Encode(_context, message);
            }
            return(message);
        }
Exemple #2
0
        public Message SerializeRequest(MessageVersion messageVersion, object[] parameters)
        {
            Message message = _innerClientFormatter.SerializeRequest(messageVersion, parameters);

            if (_controller != null)
            {
                _controller.Encode(_context, message);
            }
            return(message);
        }