private static GetPreviousStartupStatus ( |
||
app | The application. | |
Résultat | StartupStatus |
private static StartupStatus GetPreviousStartupStatus(FwApp app)
{
int loadingId = app.RegistrySettings.LoadingProcessId;
if (loadingId > 0)
{
// The last attempt to load the application never finished. We need to decide
// if it didn't finish because of a crash or if its still in the process of
// loading.
return ExistingProcesses.Any(process => process.Id == loadingId) ?
StartupStatus.StillLoading : StartupStatus.Failed;
}
return StartupStatus.Successful;
}