Ejemplo n.º 1
0
 static Manager()
 {
     db = new RethinkClient();
     cancellationTokenSource = new  CancellationTokenSource();
     systems = new List <ECS.System>();
     random  = new StandardGenerator(0);
 }
Ejemplo n.º 2
0
        public List <Stock> GetStock()
        {
            Troschuetz.Random.Generators.StandardGenerator rnd = new Troschuetz.Random.Generators.StandardGenerator();

            foreach (var item in DataStock)
            {
                item.Price = rnd.Next(1000);
            }
            return(DataStock);
        }
Ejemplo n.º 3
0
        public StockHub()
        {
            Troschuetz.Random.Generators.StandardGenerator rnd = new Troschuetz.Random.Generators.StandardGenerator();

            if (DataStock == null)
            {
                DataStock = new List <Stock>();
                DataStock.Add(new Stock()
                {
                    Code = "BMRI", Price = rnd.Next(100)
                });
                DataStock.Add(new Stock()
                {
                    Code = "BBCA", Price = rnd.Next(100)
                });
                DataStock.Add(new Stock()
                {
                    Code = "BSMR", Price = rnd.Next(100)
                });
            }
        }