|
|
@ -95,7 +95,6 @@ namespace isnd.Services
|
|
|
|
|
|
|
|
|
|
|
|
public static CatalogIndex CurrentCatalogIndex { get; protected set; }
|
|
|
|
public static CatalogIndex CurrentCatalogIndex { get; protected set; }
|
|
|
|
public static List<Page> CurrentCatalogPages { get; protected set; }
|
|
|
|
public static List<Page> CurrentCatalogPages { get; protected set; }
|
|
|
|
|
|
|
|
|
|
|
|
private IsndSettings isndSettings;
|
|
|
|
private IsndSettings isndSettings;
|
|
|
|
private string extApiUrl;
|
|
|
|
private string extApiUrl;
|
|
|
|
|
|
|
|
|
|
|
@ -103,11 +102,11 @@ namespace isnd.Services
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (CurrentCatalogIndex == null)
|
|
|
|
if (CurrentCatalogIndex == null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LoadCatalogFromDb();
|
|
|
|
ÛpdateCatalogFor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return CurrentCatalogIndex;
|
|
|
|
return CurrentCatalogIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void LoadCatalogFromDb()
|
|
|
|
public void ÛpdateCatalogFor(Commit last = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
int i = 0;
|
|
|
|
int p = 0;
|
|
|
|
int p = 0;
|
|
|
@ -121,7 +120,7 @@ namespace isnd.Services
|
|
|
|
CurrentCatalogPages = new List<Page>();
|
|
|
|
CurrentCatalogPages = new List<Page>();
|
|
|
|
|
|
|
|
|
|
|
|
var scope = dbContext.Commits.OrderBy(c => c.TimeStamp);
|
|
|
|
var scope = dbContext.Commits.OrderBy(c => c.TimeStamp);
|
|
|
|
Commit last = null;
|
|
|
|
|
|
|
|
PageRef pageRef = null;
|
|
|
|
PageRef pageRef = null;
|
|
|
|
Page page = null;
|
|
|
|
Page page = null;
|
|
|
|
i = isndSettings.CatalogPageLen;
|
|
|
|
i = isndSettings.CatalogPageLen;
|
|
|
|