Exemplo n.º 1
0
        public static int Main(string[] args)
        {
            var tracerMock = new Mock <ITracer>();
            IChildProcessManager childProcessManager = new ChildProcessManager(tracerMock.Object);

            return(childProcessManager.RunAndListenToParentAsync <TestChildProcessInput, TestChildProcessOutput>(args, MainTask, ConvertExceptionToExitCode, false).GetAwaiter().GetResult());
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            var tracerMock = new Mock <ITracer>();
            IChildProcessManager childProcessManager = new ChildProcessManager(tracerMock.Object);

            childProcessManager.RunAndListenToParentAsync <TestChildProcessInput, TestChildProcessOutput>(args, MainTask, false).Wait();
        }