Bitzsoft.Integrations.Finance.Payroll.All 1.0.0-alpha.10

This is a prerelease version of Bitzsoft.Integrations.Finance.Payroll.All.
dotnet add package Bitzsoft.Integrations.Finance.Payroll.All --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.Finance.Payroll.All -Version 1.0.0-alpha.10
                    
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.Finance.Payroll.All" Version="1.0.0-alpha.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Finance.Payroll.All" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Finance.Payroll.All" />
                    
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 Bitzsoft.Integrations.Finance.Payroll.All --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.Finance.Payroll.All, 1.0.0-alpha.10"
                    
#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.Finance.Payroll.All@1.0.0-alpha.10
                    
#: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.Finance.Payroll.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Finance.Payroll.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Finance.Payroll.All

薪酬社保服务聚合包 -- 一次性注册所有薪酬社保服务供应商。

功能特性

  • 统一注册入口AddBitzsoftPayrollAll 提供薪酬社保模块的集中注册点
  • 按需激活:仅注册配置中存在的供应商,未配置的自动跳过
  • 统一配置节:所有薪酬社保供应商配置统一位于 Finance:Payroll
  • 传递自定义配置节:支持通过 sectionKey 参数指定非默认的配置节名称
  • 预留扩展:当前为预留接口,待薪福通等具体实现完成后补充注册逻辑

安装

.NET CLI

dotnet add package Bitzsoft.Integrations.Finance.Payroll.All

PackageReference

<PackageReference Include="Bitzsoft.Integrations.Finance.Payroll.All" Version="1.0.0" />

配置

appsettings.json

{
  "Finance": {
    "Payroll": {
      "Xft": {
        "AppKey": "薪福通提供的 AppKey",
        "AppSecret": "双方约定的 AppSecret"
      }
    }
  }
}

各供应商的具体配置字段以实现包的 Options 类为准。当前薪酬社保尚未有进入本聚合包的供应商实现,配置节为预留。

注册服务

从 IConfiguration 绑定

using Bitzsoft.Integrations.Finance.Payroll.All;

// 默认读取 "Finance:Payroll" 配置节
builder.Services.AddBitzsoftPayrollAll(builder.Configuration);

// 或指定自定义配置节
builder.Services.AddBitzsoftPayrollAll(builder.Configuration, "MyFinance:Payroll");

当前 AddBitzsoftPayrollAll 为预留实现,内部尚无供应商注册逻辑。具体供应商实现完成后将在此自动注册。

使用示例

注册完成后,按抽象接口注入对应供应商实现:

using Bitzsoft.Integrations.Finance.Payroll.Interfaces;

public class PayrollService
{
    public PayrollService(IPayrollProvider payroll)
    {
        // 解析为配置中启用的供应商实现
    }
}

核心类型一览

类型 说明
ServiceCollectionExtensions.AddBitzsoftPayrollAll 聚合注册扩展方法(IConfiguration + 可选 sectionKey,默认 "Finance:Payroll"

依赖

说明
Bitzsoft.Integrations.Finance.Payroll 薪酬社保抽象层
Microsoft.Extensions.Configuration.Abstractions 配置抽象
Microsoft.Extensions.DependencyInjection.Abstractions DI 抽象

相关包

Product 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.

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.0-alpha.10 40 7/26/2026
1.0.0-alpha.9 53 7/12/2026
1.0.0-alpha.8 57 7/1/2026
1.0.0-alpha.7 74 6/16/2026
1.0.0-alpha.6 70 6/16/2026
1.0.0-alpha.5 63 6/14/2026