More update code. almost there.

This commit is contained in:
kay.one 2011-11-13 12:31:02 -08:00
commit 883dffca80
8 changed files with 166 additions and 14 deletions

View file

@ -63,7 +63,7 @@ namespace NzbDrone.Common
}
}
public virtual string StartUpPath
{
get
@ -92,7 +92,19 @@ namespace NzbDrone.Common
var fileLocation = Assembly.GetCallingAssembly().Location;
return new FileInfo(fileLocation).CreationTime;
}
}
public virtual int NzbDroneProcessIdFromEnviroment
{
get
{
var id = Convert.ToInt32(Environment.GetEnvironmentVariable("NZBDRONE_PID"));
if (id == 0)
throw new InvalidOperationException("NZBDRONE_PID isn't a valid environment variable.");
return id;
}
}
private static bool ContainsIIS(DirectoryInfo dir)