Bitzsoft.Integrations.EnterpriseMail.All 1.0.0-alpha.9

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

Bitzsoft.Integrations.EnterpriseMail.All

企业邮箱服务聚合包,自动注册所有已配置的供应商实现。

功能特性

  • 自动注册:根据 IConfiguration 配置节自动注册对应的供应商
  • 按需加载:只注册有配置节的供应商,未配置的不注册
  • 一键集成:引用此包即可获得全部供应商实现

安装

.NET CLI

dotnet add package Bitzsoft.Integrations.EnterpriseMail.All

PackageReference

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

配置

按需配置,只注册有配置节的供应商:

{
  "EnterpriseMail": {
    "Feishu": {
      "AppId": "cli_xxxxxxxx",
      "AppSecret": "xxxxxxxxxxxxxxxx",
      "DefaultUserMailboxId": "user@company.com"
    },
    "Microsoft365": {
      "TenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "ClientId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "ClientSecret": "xxxxxxxxxxxxxxxx",
      "DefaultUserEmail": "user@company.com"
    }
  }
}

以上配置将自动注册飞书和 Microsoft 365 两个供应商,未配置的供应商不会被注册。

注册服务

// 从 IConfiguration 自动注册所有配置了节名的供应商
services.AddBitzsoftEnterpriseMail(configuration, "EnterpriseMail");

包含的供应商

供应商 项目 协议
飞书 EnterpriseMail.Feishu REST API
阿里 EnterpriseMail.Alibaba REST API
腾讯 EnterpriseMail.Tencent REST API
Microsoft 365 EnterpriseMail.Microsoft365 REST API (Graph)
网易 EnterpriseMail.NetEase IMAP/SMTP

核心类型一览

类型 说明
ServiceCollectionExtensions 聚合 DI 注册扩展方法

注意事项

  • 引用此包将自动传递引用所有供应商实现包
  • 如只需特定供应商,请直接引用对应的供应商包
  • 注册后通过 IEnterpriseMailProvider 接口按 ProviderName 解析使用

依赖

  • Bitzsoft.Integrations.EnterpriseMail
  • Bitzsoft.Integrations.EnterpriseMail.Feishu
  • Bitzsoft.Integrations.EnterpriseMail.Alibaba
  • Bitzsoft.Integrations.EnterpriseMail.Tencent
  • Bitzsoft.Integrations.EnterpriseMail.Microsoft365
  • Bitzsoft.Integrations.EnterpriseMail.NetEase
  • Bitzsoft.Integrations.Compatibility

相关包

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.9 46 7/12/2026
1.0.0-alpha.8 51 7/1/2026
1.0.0-alpha.7 72 6/16/2026
1.0.0-alpha.6 69 6/16/2026
1.0.0-alpha.5 64 6/14/2026
1.0.0-alpha.3 56 6/7/2026