static public void Relaunch(string[] args, ApplicationShutdownDelegate appShutdownDelegate) { Assembly assembly = Assembly.GetEntryAssembly(); GenerateAndRunLauncherAssembly(assembly, args); // Attempt to shut down the application if (appShutdownDelegate != null) { appShutdownDelegate(); } }
/// <summary> /// Relaunches the current application with the arguments /// passed, using the provided ApplicationShutDownDelegate /// to shut down the current application. /// </summary> static public void Relaunch(ApplicationShutdownDelegate appShutdownDelegate) { Relaunch(_Arguments, appShutdownDelegate); }