/// <summary>
 /// Registers an application for automatic restart if 
 /// the application 
 /// is terminated by Windows Error Reporting.
 /// </summary>
 /// <param name="settings">An object that specifies
 /// the commandline arguments used to restart the 
 /// application, and 
 /// the conditions wheen the application should not be 
 /// restarted.</param>
 /// <exception cref="System.ArgumentException">Registration failed due to an invalid parameter.</exception>
 /// <exception cref="System.InvalidOperationException">The attempt to register failed.</exception>
 /// <remarks>A registered application will not be restarted if it executed for less than 60 seconds before terminating.</remarks>
 public static void RegisterForApplicationRestart(RestartSettings settings)
 {
     RegisterForApplicationRestart(settings.Command, settings.Restrictions);
 }
Exemple #2
0
 /// <summary>
 /// Registers an application for automatic restart if
 /// the application
 /// is terminated by Windows Error Reporting.
 /// </summary>
 /// <param name="settings">An object that specifies
 /// the commandline arguments used to restart the
 /// application, and
 /// the conditions wheen the application should not be
 /// restarted.</param>
 /// <exception cref="System.ArgumentException">Registration failed due to an invalid parameter.</exception>
 /// <exception cref="System.InvalidOperationException">The attempt to register failed.</exception>
 /// <remarks>A registered application will not be restarted if it executed for less than 60 seconds before terminating.</remarks>
 public static void RegisterForApplicationRestart(RestartSettings settings)
 {
     RegisterForApplicationRestart(settings.Command, settings.Restrictions);
 }