예제 #1
0
 public static async Task<ActionResult> GetNoodleResult(this ControllerContext cc, object root, string path = null, Func<IInvokeable, IDictionary<string, object>, object> doInvoke = null, TransformRuleRegistry ruleRegistry = null)
 {
     ruleRegistry = ruleRegistry ?? TransformRuleRegistry.Default;
     var handler = new AspMvcNoodleHandler(ruleRegistry);
     var noodleResult = handler.GetNoodleResult(cc, root, path, doInvoke);
     return await noodleResult;
 }
예제 #2
0
 static TransformRuleRegistry()
 {
     Default = new TransformRuleRegistry()
     {
         Transforms =
         {
             new ApplyButtonClass(),
             new ApplyAttributeTransformsContext(),
             new SelectFragmentTransformContext()
         }
     };
 }