Example #1
0
        public AgentOperationsService()
        {
            IList <PointModel> AllPoints = new PointService().GetActivePoints();

            MutablePointList = new ConcurrentBag <PointTemporary>();

            AllPoints.AsParallel().ForAll(x =>
            {
                MutablePointList.Add(new PointTemporary
                {
                    Id         = x.Id,
                    Coordenate = x.Coordenate,
                    Name       = x.Name
                });
            });
        }