Interfaced wrappers around System Diagnostics.
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Jun 11, 2024
$ dotnet add package SystemWrappers.Diagnostics.AbstractionsSystem.Diagnostics.Abstractions.Enhanced is a NuGet package that provides abstractions for the System.Diagnostics namespace in .NET. It allows you to write testable and mockable code that relies on the System.Diagnostics functionality.
You can install the package via NuGet package manager or by using the .NET CLI.
Run the following command in the root directory of your project:
To use the abstractions provided by this package, simply include the System.Diagnostics.Abstractions namespace in your code files:
Now you can use the abstractions from the System.Diagnostics namespace in your code, such as Process, EventLog, and PerformanceCounter. This allows you to write testable code that can be easily mocked for unit testing.
Here are some examples of how you can use the abstractions provided by this package:
For more examples and detailed documentation, please refer to the GitHub repository.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the MIT License.