Mercurial > hg > Database > Christie-sharp
view Test/Example/FizzBuzz/Counter.cs @ 33:7575980bffc9
update
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 20 Apr 2021 18:42:17 +0900 |
parents | 6399d784c6d1 |
children | 1236da135f79 |
line wrap: on
line source
using System; using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.Test.Example.FizzBuzz { public class Counter: CodeGear { [Take] private int num; public override void Run(CodeGearManager cgm) { if (num <= 100) { Console.WriteLine("call"); GetDgm("FizzBuzz").Put("num", num); cgm.GetLocalDGM().Put("num", num+1); cgm.Setup(new Counter()); } else { GetDgm("FizzBuzz").Put("num", -1); cgm.GetLocalDGM().Finish(); } } } }