Bitzsoft.Integrations.LegalDatabase.All
1.0.2
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 Bitzsoft.Integrations.LegalDatabase.All --version 1.0.2
NuGet\Install-Package Bitzsoft.Integrations.LegalDatabase.All -Version 1.0.2
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="Bitzsoft.Integrations.LegalDatabase.All" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.LegalDatabase.All" Version="1.0.2" />
<PackageReference Include="Bitzsoft.Integrations.LegalDatabase.All" />
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 Bitzsoft.Integrations.LegalDatabase.All --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bitzsoft.Integrations.LegalDatabase.All, 1.0.2"
#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 Bitzsoft.Integrations.LegalDatabase.All@1.0.2
#: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=Bitzsoft.Integrations.LegalDatabase.All&version=1.0.2
#tool nuget:?package=Bitzsoft.Integrations.LegalDatabase.All&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Bitzsoft.Integrations.LegalDatabase.All
法规案例库聚合包 — 一次调用注册全部 12 家法律数据库供应商。
功能特性
- 按配置注册 12 家供应商:威科先行、法信、聚法案例、无讼、MetaLaw、把手案例、见微数据、律商联讯、北大法宝、元典、得理法搜、incoPat
- 统一配置入口:从
IConfiguration的LegalDatabase:{供应商}配置节统一读取设置 - 透明继承能力形态:API 检索型与 SSO 跳转型供应商均通过
ILegalDatabaseProvider暴露 - 按需启用:未填写凭据的供应商配置节会被跳过,只加载已配置的供应商
安装
.NET CLI
dotnet add package Bitzsoft.Integrations.LegalDatabase.All
PackageReference
<PackageReference Include="Bitzsoft.Integrations.LegalDatabase.All" Version="1.0.0" />
配置
appsettings.json
{
"LegalDatabase": {
"WkInfo": {
"AppId": "your-app-id",
"AppSecret": "your-app-secret",
"TenantName": "your-tenant"
},
"Faxin": {
"Token": "your-sso-token"
},
"Jufaanli": {
"Token": "your-sso-token"
},
"Wusong": {
"Token": "your-sso-token"
},
"Lawsdata": {
"Token": "your-sso-token"
},
"Metalaw": {
"AppId": "your-app-id",
"SecretKey": "your-secret-key"
},
"Lexisnexis": {
"Token": "your-sso-token"
},
"Jianwei": {
"PublicKey": "MIIBIjANBg...",
"ApiUrl": "https://api.jianweidata.com/getUserInstValidate"
},
"Pkulaw": {
"UserName": "your-username",
"PrivateKey": "your-private-key",
"ApiToken": "your-rest-api-token"
},
"Yuandian": {
"ApiToken": "your-api-token"
},
"Delilegal": {
"ApiToken": "your-api-token"
},
"Incopat": {
"UserName": "your-username",
"AppSecretKey": "your-secret-key",
"ApiToken": "your-rest-api-token"
}
}
}
各供应商的可配置项参见对应供应商包的 README。只填写实际使用的供应商配置节即可。
供应商矩阵
| 配置节 | 供应商 | 注册方法 | 能力 |
|---|---|---|---|
LegalDatabase:WkInfo |
威科先行 | AddBitzsoftWkInfoLegalDatabase |
SSO 跳转 |
LegalDatabase:Faxin |
法信 | AddBitzsoftFaxinLegalDatabase |
SSO 跳转 |
LegalDatabase:Jufaanli |
聚法案例 | AddBitzsoftJufaanliLegalDatabase |
SSO 跳转 |
LegalDatabase:Wusong |
无讼 | AddBitzsoftWusongLegalDatabase |
SSO 跳转 |
LegalDatabase:Lawsdata |
把手案例 | AddBitzsoftLawsdataLegalDatabase |
SSO 跳转 |
LegalDatabase:Lexisnexis |
律商联讯 | AddBitzsoftLexisnexisLegalDatabase |
SSO 跳转 |
LegalDatabase:Metalaw |
MetaLaw | AddBitzsoftMetalawLegalDatabase |
SSO 跳转 |
LegalDatabase:Jianwei |
见微数据 | AddBitzsoftJianweiLegalDatabase |
SSO 跳转 |
LegalDatabase:Pkulaw |
北大法宝 | AddBitzsoftPkulawLegalDatabase |
SSO + API 检索 |
LegalDatabase:Yuandian |
元典 | AddBitzsoftYuandianLegalDatabase |
SSO + API 检索 |
LegalDatabase:Delilegal |
得理法搜 | AddBitzsoftDelilegalLegalDatabase |
SSO + API 检索 |
LegalDatabase:Incopat |
incoPat | AddBitzsoftIncopatLegalDatabase |
SSO + 专利检索 |
注册服务
using Bitzsoft.Integrations.LegalDatabase;
// 一键注册全部供应商(从 IConfiguration 读取)
builder.Services.AddBitzsoftLegalDatabase(builder.Configuration);
聚合方法只调用配置节实际存在的供应商注册,并从对应的 LegalDatabase:{供应商} 配置节绑定。也可以单独注册某一供应商:
builder.Services.AddBitzsoftWkInfoLegalDatabase(
builder.Configuration.GetSection("LegalDatabase:WkInfo"));
builder.Services.AddBitzsoftPkulawLegalDatabase(
builder.Configuration.GetSection("LegalDatabase:Pkulaw"));
使用示例
using Bitzsoft.Integrations.LegalDatabase;
// 多供应商必须按稳定 Provider ID 解析
public class MyService(
IIntegrationProviderResolver<ILegalDatabaseProvider> providers)
{
public async Task<string> GetLoginUrlAsync(string providerId, string userId)
{
var provider = providers.GetRequired(providerId);
var access = await provider.GenerateAccessUrlAsync(userId);
return access.Url;
}
}
Provider ID 为 wkinfo、faxin、jufaanli、wusong、metalaw、lawsdata、jianwei、lexisnexis、pkulaw、yuandian、delilegal、incopat。直接注入 ILegalDatabaseProvider 仅保留给单 Provider 兼容场景。
请求审计
API 调用型供应商(见微数据、北大法宝、元典、得理法搜、incoPat)的 HttpClient 已接入 Bitzsoft.Integrations.RequestLogging 出站请求记录管道,默认使用 NullRequestLogStore 不持久化。
// 持久化:注册 IRequestLogStore 实现后,出站请求自动落库
services.AddRequestLogging<MyRequestLogStore>(opts =>
{
opts.MaxInMemoryBodyBytes = 64 * 1024; // 仅控制内存/加密临时文件切换,不截断正文
});
依赖
相关包
- Bitzsoft.Integrations.LegalDatabase -- 法规案例库抽象层
- Bitzsoft.Integrations.SsoRedirect -- SSO 跳转配置驱动管道
- Bitzsoft.Integrations.RequestLogging -- 出站请求记录管道
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. 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 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Delilegal (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Faxin (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Incopat (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jianwei (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jufaanli (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lawsdata (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lexisnexis (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Metalaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Pkulaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.WkInfo (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Wusong (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Yuandian (>= 1.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
-
net5.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Delilegal (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Faxin (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Incopat (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jianwei (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jufaanli (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lawsdata (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lexisnexis (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Metalaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Pkulaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.WkInfo (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Wusong (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Yuandian (>= 1.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
-
net8.0
- Bitzsoft.Integrations.Compatibility (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Delilegal (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Faxin (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Incopat (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jianwei (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Jufaanli (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lawsdata (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Lexisnexis (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Metalaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Pkulaw (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.WkInfo (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Wusong (>= 1.0.2)
- Bitzsoft.Integrations.LegalDatabase.Yuandian (>= 1.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.10)
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.0.4 | 111 | 9/23/2026 |
| 1.0.3 | 96 | 9/22/2026 |
| 1.0.2 | 126 | 8/29/2026 |
| 1.0.1 | 128 | 8/3/2026 |
| 1.0.0 | 123 | 8/2/2026 |
| 1.0.0-alpha.10 | 77 | 7/26/2026 |
| 1.0.0-alpha.9 | 77 | 7/12/2026 |
| 1.0.0-alpha.8 | 85 | 7/1/2026 |
| 1.0.0-alpha.7 | 93 | 6/16/2026 |
| 1.0.0-alpha.6 | 80 | 6/16/2026 |
| 1.0.0-alpha.5 | 76 | 6/14/2026 |
| 1.0.0-alpha.3 | 140 | 6/7/2026 |