Beispiel #1
0
 private void ProcessInitEvent(ConsoleInitEventStruct e)
 {
     using (_logger.CreateCallstack())
     {
         e.InputType     = 3; // pipe
         e.OutputType    = 3; // pipe
         e.WantsProgress = _session.WantsProgress;
     }
 }
Beispiel #2
0
        private void ProcessInitEvent(ConsoleInitEventStruct e)
        {
            using (_logger.CreateCallstack())
            {
                if (!e.UseStdErr ||
                    (e.BinaryOutput != ConsoleInitEventStruct.StdInOut.Binary) ||
                    (e.BinaryInput != ConsoleInitEventStruct.StdInOut.Binary))
                {
                    throw _logger.WriteException(new InvalidOperationException("Unexpected console interface options"));
                }

                e.InputType     = 3; // pipe
                e.OutputType    = 3; // pipe
                e.WantsProgress = _session.WantsProgress;
            }
        }