Exemple #1
0
        public void UpdateCollection(IObservableCollection <TParameter> collection)
        {
            if (task == null)
            {
                collection.ReplaceOrAdd(value);
                return;
            }

            task.ContinueWith(t => collection.ReplaceOrAdd(t.Result), WindowsThreadingFactory.FromCurrentSynchronizationContext());
        }