changeset 35:9e31b8c7a5bd

fix localDGM.finish()
author riono <e165729@ie.u-ryukyu.ac.jp>
date Tue, 04 May 2021 22:17:11 +0900
parents 1236da135f79
children 3929e66a6645
files Christie_net.csproj Test/Example/HelloWorld/FinishHelloWorld.cs datagear/LocalDataGearManager.cs
diffstat 3 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Christie_net.csproj	Tue Apr 27 22:57:14 2021 +0900
+++ b/Christie_net.csproj	Tue May 04 22:17:11 2021 +0900
@@ -3,7 +3,7 @@
     <PropertyGroup>
         <OutputType>Exe</OutputType>
         <TargetFramework>netcoreapp3.1</TargetFramework>
-        <StartupObject>Christie_net.Test.Example.FizzBuzz.StartFizzBuzz</StartupObject>
+        <StartupObject>Christie_net.Test.Example.HelloWorld.StartHelloWorld</StartupObject>
     </PropertyGroup>
 
     <ItemGroup>
--- a/Test/Example/HelloWorld/FinishHelloWorld.cs	Tue Apr 27 22:57:14 2021 +0900
+++ b/Test/Example/HelloWorld/FinishHelloWorld.cs	Tue May 04 22:17:11 2021 +0900
@@ -8,7 +8,7 @@
     [Take] private string world;
 
     public override void Run(CodeGearManager cgm) {
-        //Console.WriteLine("fin:" + hello + " " + world);
+        Console.WriteLine("fin:" + hello + " " + world);
         cgm.GetLocalDGM().Finish();
     }
 }
--- a/datagear/LocalDataGearManager.cs	Tue Apr 27 22:57:14 2021 +0900
+++ b/datagear/LocalDataGearManager.cs	Tue May 04 22:17:11 2021 +0900
@@ -57,7 +57,9 @@
 
     public override void ResolveWaitCommand(string key, DataGear<object> dg) { }
 
-    public override void Finish() { }
+    public override void Finish() {
+        Environment.Exit(0);
+    }
 
     public override void Close() { }