We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f3129 commit b7d73f4Copy full SHA for b7d73f4
aspnet-core/src/AbpCompanyName.AbpProjectName.Core/AppVersionHelper.cs
@@ -21,7 +21,16 @@ public class AppVersionHelper
21
/// </summary>
22
public static DateTime ReleaseDate
23
{
24
- get { return new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime; }
+ get
25
+ {
26
+ if (_cachedReleaseDate.HasValue)
27
+ return _cachedReleaseDate.Value;
28
+
29
+ _cachedReleaseDate = new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime;
30
31
32
+ }
33
}
34
+ private static DateTime? _cachedReleaseDate;
35
36
0 commit comments