public WebData_v2 <TSource, TData> Load(WebRequest_v2 <TSource> request) { //Trace.WriteLine(); //Trace.WriteLine($"WebDataManager_v5.Load()"); WebData_v2 <TSource, TData> webData = new WebData_v2 <TSource, TData>(request); bool dataExist = DataExist(webData); if (_store == null || !dataExist || request.ReloadFromWeb || request.RefreshDocumentStore) { if (!LoadFromWeb(webData)) { return(webData); } } else { LoadFromStore(webData); } if (_store != null && webData.DataLoadedFromWeb) { SaveToStore(webData); } LoadImages(webData); return(webData); }
public WebData_v2(WebRequest_v2 <TSource> request) { _request = request; }