public static void ExecuteTask(Func <string> task, Action <string> callback)
        {
            SinglePassTaskRuntime runtime = new SinglePassTaskRuntime();

            runtime.Callback = callback;
            runtime.Invoke(task);
        }
 public static void ExecuteTask(Func<string> task,  Action<string> callback)
 {
     SinglePassTaskRuntime runtime = new SinglePassTaskRuntime();
     runtime.Callback = callback;
     runtime.Invoke(task);
 }