Exemplo n.º 1
0
 public MyDC Echo(MyDC input)
 {
     HttpRequestMessageProperty requestProperty;
     requestProperty = (HttpRequestMessageProperty)OperationContext.Current.IncomingMessageProperties[HttpRequestMessageProperty.Name];
     Console.WriteLine("In service, incoming content-type = {0}", requestProperty.Headers[HttpRequestHeader.ContentType]);
     return input;
 }
Exemplo n.º 2
0
        public MyDC Echo(MyDC input)
        {
            HttpRequestMessageProperty requestProperty;

            requestProperty = (HttpRequestMessageProperty)OperationContext.Current.IncomingMessageProperties[HttpRequestMessageProperty.Name];
            Console.WriteLine("In service, incoming content-type = {0}", requestProperty.Headers[HttpRequestHeader.ContentType]);
            return(input);
        }