Exemplo n.º 1
0
 public static UriTemplate GetUriTemplate(this HttpOperationDescription operation)
 {
     return(new UriTemplate(operation.GetUriTemplateString()));
 }
Exemplo n.º 2
0
        public Processor[] GetRequestProcessors(HttpOperationDescription operation)
        {
            var processors = new List <Processor>();

            processors.Add(new UriTemplateProcessor(this.baseAddress, new UriTemplate(operation.GetUriTemplateString())));
            processors.Add(new XmlProcessor(operation, MediaTypeProcessorMode.Request));
            if (this.processorProvider != null)
            {
                this.processorProvider.RegisterRequestProcessorsForOperation(operation, processors, MediaTypeProcessorMode.Request);
            }

            return(processors.ToArray());
        }