public FunctionPipe(string name, Func <TInput, TOutput> func, ISender <TInput> predecessor) { Name = name; _func = func; _predecessor = predecessor; predecessor.AddListener(this); }