Net.Utils
0.1.34
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.34
NuGet\Install-Package Net.Utils -Version 0.1.34
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.34" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Net.Utils --version 0.1.34
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Net.Utils, 0.1.34"
#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.
// Install Net.Utils as a Cake Addin
#addin nuget:?package=Net.Utils&version=0.1.34
// Install Net.Utils as a Cake Tool
#tool nuget:?package=Net.Utils&version=0.1.34
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, useRepeat: false, useStopWatch: useStopWatch);
ping.Hosts.Add("localhost");
ping.Hosts.Add("google.com");
ping.Hosts.Add("google-fake.com");
var task = Task.Run(async () =>
{
await ping.OpenAsync().ConfigureAwait(true);
});
task.Wait();
TestContext.WriteLine($@"{ping.Status}");
Example of ProxyEntity usage
var proxy = new Net.Utils.ProxyEntity(use, useDefaultCredentials, host, port, domain, username, password);
Net.Examples
Visit this repo for view examples
Telegram bot
Visit this bot for test examples
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