/// <summary> /// Creates a new ContentNegotiationRouteProxy. /// </summary> /// <param name="proxiedHandler">The handler to proxy, typically an MvcRouteHandler</param> /// <param name="map">The map containing the associations between media types and formats</param> /// <param name="priority">Whether the client sets the priority or the server. The HTTP spec /// indicates that the client should set it, but on occasion the server may need to set it /// to work around bugs in browsers (e.g. Chrome prioritizes xml over html).</param> public ContentNegotiationRouteProxy(IRouteHandler proxiedHandler, MediaTypeFormatMap map, ConnegPriorityGivenTo priority = ConnegPriorityGivenTo.Client) { this.proxiedHandler = proxiedHandler; this.map = map; this.priority = priority; }