aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-10-06 04:13:10 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-10-06 04:13:10 +0300
commitc719c53ebb4d27e7f45c71f65588b2c5b7e75f86 (patch)
tree8ce2c9cbb50783035fbc1503a6de1729ef1f282f /Software/Visual_Studio/Tango.Core
parent9de6ed771ef74d5fb4ba9d9353ca7a676921f0db (diff)
downloadTango-c719c53ebb4d27e7f45c71f65588b2c5b7e75f86.tar.gz
Tango-c719c53ebb4d27e7f45c71f65588b2c5b7e75f86.zip
Enable/Disable proxy PPC settings.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core')
-rw-r--r--Software/Visual_Studio/Tango.Core/Components/CmdCommand.cs13
1 files changed, 7 insertions, 6 deletions
diff --git a/Software/Visual_Studio/Tango.Core/Components/CmdCommand.cs b/Software/Visual_Studio/Tango.Core/Components/CmdCommand.cs
index afd763966..47bb66361 100644
--- a/Software/Visual_Studio/Tango.Core/Components/CmdCommand.cs
+++ b/Software/Visual_Studio/Tango.Core/Components/CmdCommand.cs
@@ -68,6 +68,8 @@ namespace Tango.Core.Components
{
return Task.Factory.StartNew<CmdCommandResult>(() =>
{
+ CmdCommandResult result = new CmdCommandResult();
+
LogManager.Log($"Starting process {_process.StartInfo.FileName} with arguments {Arguments}...");
_process.Start();
@@ -99,12 +101,11 @@ namespace Tango.Core.Components
throw new IOException($"The process {_process.StartInfo.FileName} has exited with the code {_process.ExitCode}.\n{error}");
}
- return new CmdCommandResult()
- {
- StandardOutput = output,
- StandardError = error,
- ExitCode = _process.ExitCode,
- };
+ result.StandardOutput = output;
+ result.StandardError = error;
+ result.ExitCode = _process.ExitCode;
+
+ return result;
}
else
{