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.
2 parents 5bb98b4 + a49c1f3 commit 4a52604Copy full SHA for 4a52604
aspnet-core/src/AbpCompanyName.AbpProjectName.Core/AppVersionHelper.cs
@@ -19,9 +19,8 @@ public class AppVersionHelper
19
/// Gets release (last build) date of the application.
20
/// It's shown in the web page.
21
/// </summary>
22
- public static DateTime ReleaseDate
23
- {
24
- get { return new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime; }
25
- }
+ public static DateTime ReleaseDate => LzyReleaseDate.Value;
+
+ private static readonly Lazy<DateTime> LzyReleaseDate = new Lazy<DateTime>(() => new FileInfo(typeof(AppVersionHelper).GetAssembly().Location).LastWriteTime);
26
}
27
0 commit comments