Mercurial > hg > Database > Christie-sharp
view 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 source
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); } } }