[Feature] Extract Interface for APIs used by Controls

Offen
#88 1 Kommentar 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
20/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
csharp

Rechercherichtung

Beginne mit der Überprüfung der in Issue #76 beschriebenen Authentifizierungsisolation und der derzeit von den Controls verwendeten APIs. Definiere die gemeinsame Schnittstelle in den Basispaketen und ermittle anschließend, wie eine separate Controls-Implementierung die aufgeführten Graph-Endpunkt- und SDK-Alternativen unterstützen könnte. Als erledigt gilt die Aufgabe, wenn die Schnittstelle und die Implementierungsgrenze für die angegebenen Verbindungsoptionen vereinbart sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C#
Sterne
156
Forks
37
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommunityToolkit/Graph-Controls

Alle Issues in CommunityToolkit/Graph-Controls

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.