Example #1
0
        public static IEnumerable <IHttpPathHandler> CreatePathHandlers(IHttpPathHandlerFactory pathHandlerFactory, IPayloadSerializer payloadSerializer,
                                                                        IConfiguration configuration)
        {
            // Use Configuration.
            var restResponseFactory = new RestResponseFactory();
            var templatePathHandler = new TemplatePathHandler(restResponseFactory);

            return(new List <IHttpPathHandler> {
                pathHandlerFactory.CreateHttpPathHandler("template/path", templatePathHandler.VerbHandlers)
            });
        }