예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }