A utility library for monitoring and managing system processes and services, providing tools for retrieving process states, service statuses, and integrating with Windows system APIs
$ dotnet add package Oakrey.ProcessesAndServicesThe "ProcessesAndServices" project provides utilities for monitoring and managing system processes and services. It simplifies the retrieval of process and service states, making it ideal for applications requiring system diagnostics or service management.
Methods to retrieve the state of specific processes (GetProcessState) or multiple processes (GetProcessesStates).
Methods to retrieve the state of specific services (GetServiceState) or multiple services (GetServicesStates).
Leverages System.Diagnostics for process management and System.ServiceProcess.ServiceController for service management.
Handles scenarios where services are not installed or inaccessible.
You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.
Oakrey.ProcessesAndServices and click Install.Run the following command in your terminal:
dotnet add package Oakrey.ProcessesAndServices
Run the following command in your Package Manager Console:
Install-Package Oakrey.ProcessesAndServices
Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.
This project is licensed under the MIT License. See the LICENSE file for details.