Galosys.Foundation.Express.Direct
26.7.31.1
dotnet add package Galosys.Foundation.Express.Direct --version 26.7.31.1
NuGet\Install-Package Galosys.Foundation.Express.Direct -Version 26.7.31.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="Galosys.Foundation.Express.Direct" Version="26.7.31.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Galosys.Foundation.Express.Direct" Version="26.7.31.1" />
<PackageReference Include="Galosys.Foundation.Express.Direct" />
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 Galosys.Foundation.Express.Direct --version 26.7.31.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosys.Foundation.Express.Direct, 26.7.31.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 Galosys.Foundation.Express.Direct@26.7.31.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=Galosys.Foundation.Express.Direct&version=26.7.31.1
#tool nuget:?package=Galosys.Foundation.Express.Direct&version=26.7.31.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Galosys.Foundation.Express.Direct
直连快递商实现集合。每家企业以独立的 IExpressChannel 注册,通过 PluginRegistry 统一路由。
依赖
Galosys.Foundation.CoreGalosys.Foundation.Integration.Express.AbstractionsGalosys.Foundation.BouncyCastle.Cryptography
支持的快递商
| ProviderName | 快递商 | 主要能力 |
|---|---|---|
| SF | 顺丰 | 运单查询、轨迹查询 |
| STO | 申通 | 轨迹查询 |
| YTO | 圆通 | 轨迹查询 |
| YUNDA | 韵达 | 轨迹查询、轨迹订阅 |
| POSTB | 邮政EMS | 轨迹查询 |
| JTSD | 极兔 | 轨迹查询 |
| ZTO | 中通 | 轨迹查询、轨迹订阅 |
DI 注册
services.AddExpress()
.AddExpressDirect();
配置
{
"Express": {
"Direct": {
"SF": { "PartnerId": "...", "Secret": "..." },
"STO": { "AppKey": "...", "SecretKey": "..." },
"YTO": { "AppKey": "...", "SecretKey": "..." },
"YUNDA": { "AppKey": "...", "SecretKey": "..." },
"EMS": { "AppKey": "...", "SecretKey": "...", "Authorization": "..." },
"JTSD": { "ApiAccount": "...", "PrivateKey": "..." },
"ZTO": { "AppKey": "...", "SecretKey": "..." }
}
}
}
使用
var dispatcher = sp.GetRequiredService<ExpressClient>();
var tracks = await dispatcher.TrackQueryAsync(
new ExpressRequest { CarrierCode = "SF" },
new TrackQueryRequest { WaybillNo = "SF1234567890", SenderContact = "8012" });
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Galosys.Foundation.BouncyCastle.Cryptography (>= 26.7.31.1)
- Galosys.Foundation.Core (>= 26.7.31.1)
- Galosys.Foundation.Integration.Express.Abstractions (>= 26.7.31.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.