Click or drag to resize

RestartManager Class

A utility class to restart programs the most gracefully possible. Wraps Windows Restart Manager API. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  ShellBoost.Core.UtilitiesRestartManager

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public sealed class RestartManager

The RestartManager type exposes the following members.

Constructors
  NameDescription
Public methodRestartManager
Initializes a new instance of the RestartManager class.
Top
Properties
  NameDescription
Public propertyKillTimeout
Gets or sets the kill timeout in ms.
Public propertyLogger
Gets or sets the logger.
Public propertyRetryCount
Gets or sets the retry count.
Public propertyRetryTimeout
Gets or sets the retry timeout in ms.
Top
Methods
  NameDescription
Public methodStatic memberEnumExplorerProcesses
Enumerates Windows Explorer processes.
Public methodStatic memberEnumProcessWindows
Enumerates a specific process' windows.
Public methodStatic memberGetLockingProcesses(String)
Gets a list of processes locking a specific file.
Public methodGetLockingProcesses(String, Boolean)
Gets a list of processes locking a specific file.
Public methodGetLockingProcesses(IEnumerableString, Boolean, Boolean)
Gets a list of processes locking a list of specific files.
Public methodGetLockingProcesses(IEnumerableString, Boolean, Boolean, Exception)
Gets a list of processes locking a list of specific files.
Public methodGetLockingProcesses(String, Boolean, Boolean, Exception)
Gets a list of processes locking a specific file.
Public methodStatic memberGetRootExplorerProcess
Gets the root Windows Explorer process.
Public methodStatic memberGetSharingViolationProcesses
Gets a list sharing violation processes for a given file path.
Public methodStatic memberGetWaitToKillTimeout
Gets the wait to kill timeout, that is, how long the system waits for services to stop after notifying the service that the system is shutting down
Public methodStatic memberIsExplorer
Determines whether the specified process is Windows Explorer.
Public methodStatic memberIsFileLocked
Determines if a give file is locked.
Public methodRestart(IEnumerableProcess, ContextCallback, Boolean)
Restarts the specified processes.
Public methodRestart(IEnumerableProcess, ContextCallback, Boolean, Exception)
Restarts the specified processes.
Public methodRestartExplorerProcesses(ContextCallback, Boolean)
Restarts the Windows Explorer processes.
Public methodRestartExplorerProcesses(ContextCallback, Boolean, Exception)
Restarts the Windows Explorer processes.
Public methodRestartExplorerProcessesLockingFile(String, ContextCallback, Boolean)
Restarts the Windows Explorer processes locking a specific file.
Public methodRestartExplorerProcessesLockingFile(String, ContextCallback, Boolean, Exception)
Restarts the Windows Explorer processes locking a specific file.
Public methodRestartProcessesLockingFile(String, ContextCallback, Boolean)
Restarts the processes locking a specific file.
Public methodRestartProcessesLockingFile(String, ContextCallback, Boolean, Exception)
Restarts the processes locking a specific file.
Public methodShutdown(IEnumerableProcess, ContextCallback, Boolean)
Shutdown the specified processes.
Public methodShutdown(IEnumerableProcess, ContextCallback, Boolean, Exception)
Shutdown the specified processes.
Public methodShutdownExplorerProcesses(ContextCallback, Boolean)
Shots down the Windows Explorer processes.
Public methodShutdownExplorerProcesses(ContextCallback, Boolean, Exception)
Shots down the Windows Explorer processes.
Public methodShutdownExplorerProcessesLockingFile(String, ContextCallback, Boolean)
Shuts down the Windows Explorer processes locking a specific file.
Public methodShutdownExplorerProcessesLockingFile(String, ContextCallback, Boolean, Exception)
Shuts down the Windows Explorer processes locking a specific file.
Public methodShutdownProcessesLockingFile(String, ContextCallback, Boolean)
Shuts down the processes locking a specific file.
Public methodShutdownProcessesLockingFile(String, ContextCallback, Boolean, Exception)
Shuts down the processes locking a specific file.
Top
Fields
  NameDescription
Public fieldStatic memberDefaultKillTimeout
The default kill timeout value (2000).
Public fieldStatic memberDefaultRetryCount
The default retry count value (10).
Public fieldStatic memberDefaultRetryTimeout
The default retry timeout value (100).
Top
See Also