public void TaskCompleted(DataAsyncResult result, string current, List<string> toCome)
 {
     if (!this.DataLoadingScopeViewService.WaitingForAll(null, toCome))
     {
         this.Ready();
     }
 }
        public DataAsyncResult EnqueueRequest(Func<object> operation, TaskParam parameters)
        {
            DataAsyncResult result = new DataAsyncResult(null, false);
            var newRequest = new Task()
            {
                Operation = operation,
                AsyncResult = result,
                Parameters = parameters
            };

            lock (this.taskSyncRoot)
            {
                this.tasks.Enqueue(newRequest);
            }
            return result;
        }
Exemple #3
0
        public void TaskCompleted(DataAsyncResult result, string current, System.Collections.Generic.List<string> toCome)
        {
            if (!this.DataLoadingScopeViewService.WaitingForImport(null, toCome))
            {
                Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    this.MessengerInstance.Send(ScreenLock.Release());
                });
            }

            if (!this.DataLoadingScopeViewService.WaitingForAll(null, toCome))
            {
                Deployment.Current.Dispatcher.BeginInvoke(() =>
                {
                    this.Ready();
                });
            }
        }
 public void TaskCompleted(DataAsyncResult result, string current, List<string> toCome)
 {
     if (toCome == null || toCome.Count == 0)
     {
         this.Ready();
     }
 }