27 private bool _oneTimeWarningLog;
32 public event EventHandler<DataProviderNewDataRequestEventArgs>
NewDataRequest;
39 public virtual Stream
Fetch(
string key)
42 var errorMessage =
string.Empty;
47 catch (Exception exception)
50 errorMessage = exception.Message;
51 if (exception is DirectoryNotFoundException)
53 if (!_oneTimeWarningLog)
55 _oneTimeWarningLog =
true;
56 Logging.Log.Debug($
"DefaultDataProvider.Fetch(): DirectoryNotFoundException: please review data paths, current 'Globals.DataFolder': {Globals.DataFolder}");
60 else if (exception is FileNotFoundException)