QQWry.DependencyInjection
1.3.1
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
dotnet add package QQWry.DependencyInjection --version 1.3.1
NuGet\Install-Package QQWry.DependencyInjection -Version 1.3.1
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="QQWry.DependencyInjection" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="QQWry.DependencyInjection" Version="1.3.1" />
<PackageReference Include="QQWry.DependencyInjection" />
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 QQWry.DependencyInjection --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: QQWry.DependencyInjection, 1.3.1"
#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 QQWry.DependencyInjection@1.3.1
#: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=QQWry.DependencyInjection&version=1.3.1
#tool nuget:?package=QQWry.DependencyInjection&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
IP_qqwry 纯真IP数据库操作
Packages | Version |
---|---|
QQWry | |
QQWry.DependencyInjection |
QQWry
var config = new QQWryOptions()
{
DbPath = MapRootPath("~/IP/qqwry.dat")
};
var ipSearch = new QQWryIpSearch(config);
foreach (var ip in preSearchIpArray)
{
var ipLocation = ipSearch.GetIpLocation(ip);
Write(ipLocation);
}
Console.WriteLine("记录总数" + ipSearch.IpCount);
Console.WriteLine("版本" + ipSearch.Version);
QQWry.DependencyInjection
var service = new ServiceCollection();
service.AddQQWry(config);
var serviceProvider = service.BuildServiceProvider();
using (var scope = serviceProvider.CreateScope())
{
var ipSearchInterface = scope.ServiceProvider.GetRequiredService<IIpSearch>();
foreach (var ip in preSearchIpArray)
{
var ipLocation = ipSearchInterface.GetIpLocation(ip);
Write(ipLocation);
}
Console.WriteLine("记录总数" + ipSearchInterface.IpCount);
Console.WriteLine("版本" + ipSearchInterface.Version);
}
IIpSearch
/// <summary>
/// 数据库IP数量
/// </summary>
int IpCount { get; }
/// <summary>
/// 数据库版本
/// </summary>
string Version { get; }
/// <summary>
/// 检查是否是IP地址
/// </summary>
/// <param name="ip"></param>
/// <returns></returns>
bool CheckIp(string ip);
/// <summary>
/// 获取IP信息
/// </summary>
/// <param name="strIp"></param>
/// <returns></returns>
IpLocation GetIpLocation(string strIp);
/// <summary>
/// 检查是否是IP地址
/// </summary>
/// <param name="strIp"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<IpLocation> GetIpLocationAsync(string strIp, CancellationToken token = default);
/// <summary>
/// 初始化
/// </summary>
/// <returns></returns>
bool Init();
/// <summary>
/// 初始化
/// </summary>
/// <param name="getNewDb"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<bool> InitAsync(CancellationToken token = default);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.32)
- QQWry (>= 1.3.1)
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- QQWry (>= 1.3.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 |
---|---|---|
1.3.1 | 696 | 6/2/2023 |
1.3.0 | 197 | 6/2/2023 |
1.2.1 | 2,838 | 2/8/2022 |
1.2.0 | 520 | 3/3/2021 |
1.1.15 | 582 | 6/10/2020 |
1.1.14 | 557 | 6/1/2020 |
1.1.10 | 599 | 2/13/2020 |
1.1.9 | 725 | 2/2/2020 |
1.1.8 | 695 | 2/2/2020 |
1.1.7 | 572 | 2/2/2020 |
1.1.6 | 690 | 4/16/2019 |
1.1.5 | 663 | 4/16/2019 |
1.1.3 | 649 | 4/9/2019 |
1.1.2 | 665 | 4/9/2019 |
1.1.0 | 687 | 4/9/2019 |
1.0.20 | 662 | 4/7/2019 |
1.0.19 | 653 | 4/7/2019 |
1.0.18 | 684 | 4/7/2019 |
1.0.16 | 666 | 4/7/2019 |
1.0.15 | 660 | 4/7/2019 |
1.0.13 | 664 | 4/7/2019 |
1.0.12 | 706 | 4/7/2019 |
1.0.11 | 660 | 4/7/2019 |
1.0.10 | 694 | 4/7/2019 |
1.0.9 | 682 | 4/7/2019 |
1.0.7 | 671 | 4/7/2019 |
1.0.6 | 654 | 4/7/2019 |
1.0.0 | 670 | 3/27/2019 |