You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2016/12/06 08:40:46 UTC

[49/50] ignite git commit: .NET: Fix compilation (restore IgniteProcess.Join overload)

.NET: Fix compilation (restore IgniteProcess.Join overload)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4e1fc406
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4e1fc406
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4e1fc406

Branch: refs/heads/ignite-comm-balance-master
Commit: 4e1fc406581c65b89b0b98c7d376df3cb6b8d95b
Parents: 9e9e371
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Mon Dec 5 17:20:56 2016 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Mon Dec 5 17:20:56 2016 +0300

----------------------------------------------------------------------
 .../Process/IgniteProcess.cs                     | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4e1fc406/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs
index 11fe614..5aec1ac 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Process/IgniteProcess.cs
@@ -260,6 +260,25 @@ namespace Apache.Ignite.Core.Tests.Process
         }
 
         /// <summary>
+        /// Join process with timeout.
+        /// </summary>
+        /// <param name="timeout">Timeout in milliseconds.</param>
+        /// <param name="exitCode">Exit code.</param>
+        /// <returns><c>True</c> if process exit occurred before timeout.</returns>
+        public bool Join(int timeout, out int exitCode)
+        {
+            if (_proc.WaitForExit(timeout))
+            {
+                exitCode = _proc.ExitCode;
+
+                return true;
+            }
+            exitCode = 0;
+
+            return false;
+        }
+
+        /// <summary>
         /// Attach output reader to the process.
         /// </summary>
         /// <param name="proc">Process.</param>