Skip to content

Commit a7c62fb

Browse files
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

File tree

3 files changed

+262
-222
lines changed

3 files changed

+262
-222
lines changed

CheckProxy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="RestSharp" Version="108.0.3" />
1716
<PackageReference Include="Spectre.Console" Version="0.45.0" />
17+
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
1818
</ItemGroup>
1919

2020
</Project>

0 commit comments

Comments
 (0)