Commit a7c62fb
committed
Refactor for performance and add documentation
This commit completely refactors the CheckProxy application to be more performant, efficient, and user-friendly.
- Replaced synchronous network calls with asynchronous operations throughout the application.
- Implemented concurrent proxy checking using `Task.WhenAll` and a `SemaphoreSlim` to control parallelism, significantly speeding up batch processing from a file.
- Replaced basic argument parsing with the `System.CommandLine` library, providing a robust CLI with support for single proxy checks, file inputs (`--file`), and configurable timeouts (`--timeout`).
- Consolidated six redundant proxy check methods into three focused and reliable checks.
- Removed the unused `RestSharp` dependency in favor of the modern `HttpClient`.
- Added comprehensive XML documentation to the C# code for better maintainability.
- Overhauled the `README.md` to provide accurate and detailed information, including build instructions and up-to-date usage examples.1 parent d9823a8 commit a7c62fb
3 files changed
+262
-222
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
0 commit comments