Mercurial > hg > Database > Christie-sharp
view Test/Example/FizzBuzz/Counter.cs @ 48:6e5c0977d756
bug fixed
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 10 Jan 2022 00:56:00 +0900 |
parents | 61ec3dd0995c |
children | 6d733b2ea461 |
line wrap: on
line source
using System; using System.Threading; using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.Test.Example.FizzBuzz { public class Counter: CodeGear { [Take] private int count; public override void Run(CodeGearManager cgm) { if (count <= 100) { GetDgm("FizzBuzz").Put("num", count); //cgm.GetLocalDGM().Put("cunt", count+1); cgm.Setup(new Counter()); } else { GetDgm("FizzBuzz").Put("num", -1); cgm.GetLocalDGM().Finish(); } } } }