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" />
                    
Directory.Packages.props
<PackageReference Include="Galosys.Foundation.Express.Direct" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Galosys.Foundation.Express.Direct&version=26.7.31.1
                    
Install as a Cake Tool

Galosys.Foundation.Express.Direct

直连快递商实现集合。每家企业以独立的 IExpressChannel 注册,通过 PluginRegistry 统一路由。

依赖

  • Galosys.Foundation.Core
  • Galosys.Foundation.Integration.Express.Abstractions
  • Galosys.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 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.

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
26.7.31.1 36 7/31/2026
26.7.30.1 35 7/30/2026
26.7.29.1 45 7/29/2026
26.7.28.1 59 7/28/2026
26.7.26.2 89 7/26/2026
26.7.26.1 86 7/25/2026
26.7.25.1 90 7/25/2026