/// <summary> /// Sets the selection function. /// </summary> /// <param name="function"></param> /// <returns></returns> public Task SetFunction(SerializableFunc <TIn, TOut> function) { _functionTemplate = function; return(TaskDone.Done); }
/// <summary> /// Set the select function. /// </summary> /// <param name="function">Selection function for each item.</param> /// <returns></returns> public Task SetFunction(SerializableFunc <TIn, IEnumerable <TOut> > function) { _function = function.Value.Compile(); return(TaskDone.Done); }
/// <summary> /// Set the where function. /// </summary> /// <param name="function">Filter function for each item. Evaluation to 'true' will forward results to the output stream.</param> /// <returns></returns> public Task SetFunction(SerializableFunc <TIn, bool> function) { _function = function.Value.Compile(); return(TaskDone.Done); }