LibrameStandard.Extensions.Network
5.20.1810.221
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package LibrameStandard.Extensions.Network --version 5.20.1810.221
NuGet\Install-Package LibrameStandard.Extensions.Network -Version 5.20.1810.221
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="LibrameStandard.Extensions.Network" Version="5.20.1810.221" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibrameStandard.Extensions.Network --version 5.20.1810.221
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LibrameStandard.Extensions.Network, 5.20.1810.221"
#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 LibrameStandard.Extensions.Network as a Cake Addin
#addin nuget:?package=LibrameStandard.Extensions.Network&version=5.20.1810.221
// Install LibrameStandard.Extensions.Network as a Cake Tool
#tool nuget:?package=LibrameStandard.Extensions.Network&version=5.20.1810.221
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
4 LibrameStandard.Extensions.Network
Install Extension
PM> Install-Package LibrameStandard.Extensions.Network
Register Extension
// Use DependencyInjection
var services = new ServiceCollection();
// Register LibrameStandard
services.AddLibrameStandard()
.AddNetwork();
// Build ServiceProvider
var serviceProvider = services.BuildServiceProvider();
Test Extension
// Crawler
public class InternalCrawlerServiceTests
{
private ICrawlerService _crawler;
public InternalCrawlerServiceTests()
{
_crawler = TestServiceProvider.Current.GetRequiredService<ICrawlerService>();
}
[Fact]
public async void GetStringTest()
{
var result = await _crawler.GetString("https://www.cnblogs.com");
Assert.NotEmpty(result);
}
[Fact]
public async void GetHyperLinksTest()
{
var result = await _crawler.GetHyperLinks("https://www.baidu.com");
Assert.True(result.Count > 0);
}
[Fact]
public async void GetImageHyperLinksTest()
{
var result = await _crawler.GetImageHyperLinks("https://www.baidu.com");
Assert.True(result.Count > 0);
}
}
// Email
public class InternalEmailSenderTests
{
private IEmailSender _sender;
public InternalEmailSenderTests()
{
_sender = TestServiceProvider.Current.GetRequiredService<IEmailSender>();
}
[Fact]
public void SendAsyncTest()
{
_sender.SendAsync("receiver@domain.com",
"Email Subject",
"Email Body");
}
}
// Message
public class InternalSmsSenderTests
{
private ISmsSender _sender;
public InternalSmsSenderTests()
{
_sender = TestServiceProvider.Current.GetRequiredService<ISmsSender>();
}
[Fact]
public void SendAsyncTest()
{
var result = _sender.SendAsync("TestData: 123456").Result;
Assert.Empty(result);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- LibrameStandard.Extensions.Cryptography (>= 5.20.1810.221)
- LibrameStandard.Extensions.Network.Abstractions (>= 5.20.1810.221)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 2.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
LibrameStandard.Extensions.Network