示例#1
0
        public async Task <bool> ImplementNormalLocal()
        {
            if (NormalLocalSet == null || NormalLocalSet.Count() <= 0)
            {
                return(true);
            }
            var tasks = new List <Task <bool> >();

            if (TargetType.Invoke().Equals(typeof(LocalPushUpdating)))
            {
                foreach (var element in NormalLocalSet)
                {
                    tasks.Add(UpdateProcessing.StatusChangeFromPendingDeleteToNormalAsync(element, _repository));
                }
            }
            else
            {
                foreach (var element in NormalLocalSet)
                {
                    tasks.Add(UpdateProcessing.StatusChangeFromPendingDeleteToDeletedAsync(element, _repository));
                }
            }
            await Task.WhenAll(tasks);

            return(true);
        }
示例#2
0
 public void ImplementNormalLocal()
 {
     if (NormalLocalSet == null || NormalLocalSet.Count() <= 0)
     {
         return;
     }
     if (TargetType.Invoke().Equals(typeof(LocalPushUpdating)))
     {
         foreach (var element in NormalLocalSet)
         {
             UpdateProcessing.CreateElement(element, _repository, _idDrawing);
         }
     }
 }
 public void ImplementNormalLocal()
 {
     if (NormalLocalSet == null || NormalLocalSet.Count() <= 0)
     {
         return;
     }
     if (TargetType.Invoke().Equals(typeof(LocalPushUpdating)))
     {
         foreach (var element in NormalLocalSet)
         {
             // Tao geometry
             UpdateProcessing.CreateNewGeometryVersion(element, _repository);
         }
     }
 }