Exemplo n.º 1
0
        public void Postprocess(Negotiator model, NancyModule module)
        {
            var negotiationContext = model.NegotiationContext;

            negotiationContext.DefaultModel = _postprocessor.Postprocess(negotiationContext.DefaultModel, module);
            ProcessMediaRangeMappings(negotiationContext, module);
        }
 public static Func <object, object> WrapRoute(this Func <object, object> route, IModelPostprocessor processor, NancyModule module)
 {
     return(p => processor.Postprocess(route(p), module));
 }