ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [21/26] ignite git commit: IGNITE-5919 .NET: Add ReadKey at the end of EntryProcessorExample
Date Fri, 22 Sep 2017 11:19:52 GMT
IGNITE-5919 .NET: Add ReadKey at the end of EntryProcessorExample


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

Branch: refs/heads/ignite-3478
Commit: 9f662cc4b524305af3126af49ccace7dab40216e
Parents: f120551
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Fri Sep 22 13:03:44 2017 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Fri Sep 22 13:03:44 2017 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs        | 6 ++++++
 .../Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs   | 4 ++++
 2 files changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/9f662cc4/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
index e7a264d..9c3625f 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Examples/Example.cs
@@ -56,8 +56,14 @@ namespace Apache.Ignite.Core.Tests.Examples
                 // Each example has a ReadKey at the end, which throws an exception in test
environment.
                 if (ex.Message != "Cannot read keys when either application does not have
a console or " +
                     "when console input has been redirected from a file. Try Console.Read.")
+                {
                     throw;
+                }
+
+                return;
             }
+
+            throw new Exception("ReadKey missing at the end of the example.");
         }
 
         /// <summary>

http://git-wip-us.apache.org/repos/asf/ignite/blob/9f662cc4/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs
b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs
index bd805c5..197a435 100644
--- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs
+++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Datagrid/EntryProcessorExample.cs
@@ -73,6 +73,10 @@ namespace Apache.Ignite.Examples.Datagrid
 
                 PrintCacheEntries(cache);
             }
+
+            Console.WriteLine();
+            Console.WriteLine(">>> Example finished, press any key to exit ...");
+            Console.ReadKey();
         }
 
         /// <summary>


Mime
View raw message