Exemple #1
0
        public async Task LoadAsync()
        {
            LoadBegins?.Invoke();

            await RarityTiers.LoadAsync();

            LoadEnds?.Invoke();
        }
Exemple #2
0
        //public StationCatalog Stations
        //{
        //    get { return _stationCatalog; }
        //}

        public async void LoadModel()
        {
            LoadBegins?.Invoke();

            await _employeeCatalog.LoadAsync();

            //await _stationCatalog.LoadAsync();

            LoadEnds?.Invoke();
        }
        public async void LoadModel()
        {
            // Notifies subscribers that Load is about to start
            LoadBegins?.Invoke();

            await _movieCatalog.LoadAsync();

            await _studioCatalog.LoadAsync();

            // Notifies subscribers that Load is about to end
            LoadEnds?.Invoke();
        }
Exemple #4
0
        public async void LoadModel()
        {
            LoadBegins?.Invoke();

            await _carCatalog.LoadAsync();

            await _customerCatalog.LoadAsync();

            await _employeeCatalog.LoadAsync();

            await _saleCatalog.LoadAsync();

            LoadEnds?.Invoke();
        }
Exemple #5
0
        /// <inheritdoc />
        /// <summary>
        /// Relays call of Load to data source, if the data
        /// source supports the Load operation
        /// </summary>
        public async Task LoadAsync(bool suppressException = true)
        {
            if (_supportedOperations.Contains(PersistencyOperations.Load))
            {
                LoadBegins?.Invoke();
                List <TPersistentData> objects = await _persistentSource.Load();

                _collection.ReplaceAll(CreateDomainObjects(objects), KeyManagementStrategyType.DataSourceDecides);
                LoadEnds?.Invoke();
            }
            else
            {
                if (!suppressException)
                {
                    throw new NotSupportedException();
                }
            }
        }