[Feature] Extract Interface for APIs used by Controls

未关闭
#88 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp

调研方向

首先审查 issue #76 中描述的身份验证隔离,以及 controls 当前使用的 API。在基础包中定义通用接口,然后确定单独的 controls 实现如何支持所列出的 Graph endpoint 和 SDK 替代方案。当针对所述连接选项就接口和实现边界达成一致时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Area: Controls enhancement :sparkles: question :grey_question:

Describe the problem this feature would solve

Allow for alternate SDK versions #52 (as well as V1 vs. V2 connections, or leaner HTTP only based implementations (refit?)) and alternate implementations to other ecosystems (though not a priority for us, would allow controls better re-use for others).

Describe the solution

Was thinking now that we've started isolating the authentication method in #76, that it may make sense to extend that to the Graph SDK itself. If we create a common interface for any calls we need to make, that can be in our base packages and referenced by our controls package, but then we could put the implementation that drives the controls in a separate packages. Then hook them up later.

This would provide a number of ways to implement the connection to the Graph which should let us:

  • Connect to Beta End-point
  • Connect to V1 End-point
  • Support both V1 and V2 Graph SDKs when the later releases hopefully?
  • Create a leaner HTTP only implementation without an explicit Graph SDK reference, maybe using refit or something else?
  • Allow others to connect to other ecosystems outside of graph to re-use controls.

Just like authentication, we don't have to make assumptions or dictations on what apps have to use to leverage the controls themselves to improve their apps.

FYI @shweaver-MSFT

主要语言
C#
星标
156
派生
37
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CommunityToolkit/Graph-Controls 的其他 Issue

查看 CommunityToolkit/Graph-Controls 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。