Mercurial > hg > Database > Christie-sharp
diff Test/Example/OddEven/StartOddEven.cs @ 51:486683ead53f
bug survey
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 11 Jan 2022 20:02:18 +0900 |
parents | Test/Example/OddEven/StarOddEven.cs@6d733b2ea461 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Test/Example/OddEven/StartOddEven.cs Tue Jan 11 20:02:18 2022 +0900 @@ -0,0 +1,22 @@ +using Christie_net.codegear; + +namespace Christie_net.Test.Example.OddEven { +public class StartOddEven : StartCodeGear { + public StartOddEven(CodeGearManager cgm) : base(cgm) { } + + public static void Main() { + int finishCount = 10; + CodeGearManager odd = CreateCgm(10001); + CodeGearManager even = CreateCgm(10002); + + odd.Setup(new OddCodeGear()); + even.Setup(new EvenCodeGear()); + odd.CreateRemoteDGM("even", "localhost", 10002); + even.CreateRemoteDGM("odd", "localhost", 10001); + + odd.GetLocalDGM().Put("odd", 1); + odd.GetLocalDGM().Put("finishCount", finishCount); + even.GetLocalDGM().Put("finishCount", finishCount); + } +} +} \ No newline at end of file