mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Added BuildDateTime to central dispatch
This commit is contained in:
parent
b6360eba26
commit
1ba959298b
3 changed files with 21 additions and 1 deletions
|
@ -29,6 +29,17 @@ namespace NzbDrone.Core
|
|||
get { return Assembly.GetExecutingAssembly().GetName().Version; }
|
||||
}
|
||||
|
||||
|
||||
public static DateTime BuildDateTime
|
||||
{
|
||||
get
|
||||
{
|
||||
var fileLocation = Assembly.GetCallingAssembly().Location;
|
||||
return new FileInfo(fileLocation).CreationTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static String AppPath
|
||||
{
|
||||
get
|
||||
|
@ -53,12 +64,13 @@ namespace NzbDrone.Core
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public static void InitializeApp()
|
||||
{
|
||||
BindKernel();
|
||||
|
||||
MigrationsHelper.Run(Connection.MainConnectionString, true);
|
||||
|
||||
|
||||
LogConfiguration.StartDbLogging();
|
||||
|
||||
_kernel.Get<QualityProvider>().SetupDefaultProfiles();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue