Net.Utils
0.1.31
Suggested Alternatives
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Net.Utils --version 0.1.31
NuGet\Install-Package Net.Utils -Version 0.1.31
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Net.Utils" Version="0.1.31" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net.Utils" Version="0.1.31" />
<PackageReference Include="Net.Utils" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Net.Utils --version 0.1.31
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Net.Utils, 0.1.31"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Net.Utils@0.1.31
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Net.Utils&version=0.1.31
#tool nuget:?package=Net.Utils&version=0.1.31
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Net.Utils - Network utilities.
Net.Utils
- HttpClientEntity
- PingEntity
- ProxyEntity
Net.Utils.Tests
- EnumValues
- HttpClientEntityTests
- ProxyEntityTests
- Utils
How to use
Example of HttpClientEntity usage
var proxy = new ProxyEntity();
var httpClient = new HttpClientEntity(timeout, host);
httpClient.OpenTask(isTaskWait, proxy);
if (isTaskWait)
{
TestContext.WriteLine($@"{httpClient.Status}");
TestContext.WriteLine($@"{httpClient.Content}");
}
Example of PingEntity usage
var ping = new PingEntity(timeoutPing: timeoutPing, timeoutTask: timeoutTask, isRepeat: false);
ping.Hosts.Add("google.com");
ping.OpenTask(isTaskWait);
if (isTaskWait)
TestContext.WriteLine($@"{ping.Status}");
Example of ProxyEntity usage
var proxy = new Net.Utils.ProxyEntity(use, useDefaultCredentials, host, port, domain, username, password);
Please, if this tool has been useful for you consider to donate
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Nuget release