| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | using System;namespace MECF.Framework.UI.Client.ClientBase.Pipelines{    public class PipelineMethodInvoker<TResult>    {        public PipelineMethodInvoker(Func<TResult> func)        {            Function = func;        }        public bool IsEmpty => Function == null;        public Func<TResult> Function { get; }        public TResult Invoke()        {            return Function.Invoke();        }    }    public class PipelineMethodInvoker<TParam, TResult>    {        public PipelineMethodInvoker(Func<TParam, TResult> func)        {            Function = func;        }        public bool IsEmpty => Function == null;        public Func<TParam, TResult> Function { get; }        public TResult Invoke(TParam arg)        {            return Function.Invoke(arg);        }    }   }
 |