Пример #1
0
 public void TaskCompleted(DataAsyncResult result, string current, List<string> toCome)
 {
     if (!this.DataLoadingScopeViewService.WaitingForAll(null, toCome))
     {
         this.Ready();
     }
 }
Пример #2
0
        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;
        }
Пример #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();
                });
            }
        }
Пример #4
0
 public void TaskCompleted(DataAsyncResult result, string current, List<string> toCome)
 {
     if (toCome == null || toCome.Count == 0)
     {
         this.Ready();
     }
 }