Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

日历

ICalendarService 统一抽象与 2 家日历供应商(Google、Microsoft 365)的包参考。

Last updated

日历域把日历事件(Event)及其邀请响应抽象为 ICalendarService,消费方通过 DI 注入接口即可,无需关心具体供应商。

统一接口

ICalendarService(命名空间 Bitzsoft.Integrations.Calendar)定义 7 个方法:

方法说明
CreateEventAsync创建日历事件
GetEventAsync查询单个日历事件详情
UpdateEventAsync更新日历事件
DeleteEventAsync删除日历事件
ListEventsAsync查询日历事件列表
AcceptInvitationAsync接受事件邀请
DeclineInvitationAsync拒绝事件邀请

接口还暴露 ProviderName 属性,返回运行时供应商名称(如 "Google")。

包结构

Bitzsoft.Integrations.Calendar/ ← 抽象层
Bitzsoft.Integrations.Calendar.All/ ← 聚合包(拉入全部 2 家)
Bitzsoft.Integrations.Calendar.Google/ ← Google Calendar
Bitzsoft.Integrations.Calendar.Microsoft365/ ← Microsoft 365 Calendar

供应商清单

供应商Provider ID鉴权文档
Google CalendargoogleOAuth2 Access Token Bearer / API Keygoogle.mdx
Microsoft 365 Calendarmicrosoft-365Azure AD Client Credentials Bearer(Microsoft Graph)microsoft365.mdx

相关

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%