add Fingerprint property to ModuleBase and ThemeBase

This commit is contained in:
sbwalker 2025-01-28 08:43:48 -05:00
parent bfb4b4431b
commit ed981c67b7
2 changed files with 18 additions and 0 deletions

View File

@ -132,6 +132,15 @@ namespace Oqtane.Modules
return PageState?.Alias.BaseUrl + "/Modules/" + GetType().Namespace + "/";
}
// fingerprint hash code for static assets
public string Fingerprint
{
get
{
return ModuleState.ModuleDefinition.Hash;
}
}
// url methods
// navigate url

View File

@ -101,6 +101,15 @@ namespace Oqtane.Themes
return PageState?.Alias.BaseUrl + "/Themes/" + GetType().Namespace + "/";
}
// fingerprint hash code for static assets
public string Fingerprint
{
get
{
return ThemeState.Hash;
}
}
// url methods
// navigate url