/// <summary> /// Registers a pipe function that takes five arguments from pipe with the specified name. /// </summary> /// <param name="name">A string specifying the name of the pipe function.</param> /// <param name="fn">A delegate encapsulating the native method.</param> public static void RegisterFunction(string name, PipeFunction.Func5 fn) { EvaluationContext.RegisterFunction(name, PipeFunction.Create(fn)); }
/// <summary> /// Registers a pipe function that run the specified template with the specified name. /// </summary> /// <param name="name">A string specifying the name of the pipe function.</param> /// <param name="template">A string that represents a valid waterpipe template.</param> public static void RegisterFunction(string name, string template) { EvaluationContext.RegisterFunction(name, PipeFunction.Create(template)); }