Added BuildDateTime to central dispatch

This commit is contained in:
kay.one 2011-10-11 19:24:43 -07:00
commit 1ba959298b
3 changed files with 21 additions and 1 deletions

View file

@ -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();