Exemplo n.º 1
0
        protected override void DeserializeRequest(HttpRequestMessage message, object[] parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("parameters");
            }

            var httpMessageProperty = new HttpMessageProperty()
            {
                Request = message, Response = new HttpResponseMessage()
            };

            MessageProperties.Add(HttpMessageProperty.Name, httpMessageProperty);

            var result = this.requestPipeline.Execute(GetRequestInArgumentValues(message, httpMessageProperty.Response).ToArray());

            for (int i = 0; i < parameters.Length; i++)
            {
                parameters[i] = result.Output[i];
            }
        }
        protected override void DeserializeRequest(HttpRequestMessage message, object[] parameters)
        {
            if (parameters == null)
            {
                throw new ArgumentNullException("parameters");
            }

            var httpMessageProperty = new HttpMessageProperty() { Request = message, Response = new HttpResponseMessage() };
            MessageProperties.Add(HttpMessageProperty.Name, httpMessageProperty);

            var result = this.requestPipeline.Execute(GetRequestInArgumentValues(message, httpMessageProperty.Response).ToArray());
            for (int i = 0; i < parameters.Length; i++)
            {
                parameters[i] = result.Output[i];
            }
        }