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); }
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); } } }