Example #1
0
    protected Catalog GetCatalog()
    {
        Catalog?result = null;

        if (!FeedManager.Refresh)
        {
            result = CatalogManager.GetCached();
        }
        if (result == null && Config.NetworkUse != NetworkLevel.Offline)
        {
            result = CatalogManager.GetOnlineSafe();
        }
        if (result == null)
        {
            throw new WebException(Resources.UnableToLoadCatalog);
        }
        return(result);
    }