# solarwinds/orionsdk architecture

> Architecture diagram of the GitHub repository solarwinds/orionsdk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/solarwinds/orionsdk
- Repository: https://github.com/solarwinds/orionsdk

## Overview

Orion SDK provides three user-facing tools: SWQL Studio, a PowerShell module, and the shared Information Service contract/client. The central Studio workflow is to connect to an Orion server, submit SWQL through a query tab, and inspect or export results; separate branches support metadata exploration, object operations, subscriptions, and playback. Edges are limited to relationships shown in the sampled source or SOURCE INDEX; the README identifies the tools but does not document their detailed runtime wiring.

Main entry points: [`Src/Contract/InfoServiceProxy.cs`](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InfoServiceProxy.cs) (Service proxy), [`Src/SwqlStudio/ConnectionInfo.cs`](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/ConnectionInfo.cs) (Server connection), [`Src/SwqlStudio/Subscriptions/SubscriptionManager.cs`](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Subscriptions/SubscriptionManager.cs) (Subscriptions), [`Src/SwqlStudio/QueryTab.cs`](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/QueryTab.cs) (Query and results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_studio["SWQL Studio"]
  node_studio_app["Studio application<br/>[Program.cs]"]
  node_connections["Connection manager"]
  node_connection_info["Server connection<br/>[ConnectionInfo.cs]"]
  node_query_tab["Query and results<br/>[QueryTab.cs]"]
  node_metadata["Schema metadata"]
  node_explorer["Object explorer"]
  node_object_ops["Object and verb tabs"]
  node_subscriptions["Subscriptions"]
  node_subscription_host["Notification listener"]
  node_playback["Query playback<br/>[PlaybackManager.cs]"]
end

subgraph group_contract["Information Service Contract"]
  node_contract_api["Service contract"]
  node_service_proxy["Service proxy"]
  node_query_context["Query context"]
  node_query_api["Typed query"]
  node_db_connection["ADO connection"]
  node_db_command["ADO command"]
  node_oauth["OAuth token manager"]
  node_notification_contract["Notification contract"]
end

subgraph group_powershell["PowerShell Module"]
  node_ps_commands["SWIS cmdlets"]
end

subgraph group_logging["Logging"]
  node_logging_api["Logging facade<br/>[Log.cs]"]
end

node_studio_user(("Studio user"))
node_ps_user(("PowerShell user"))
node_orion["Orion platform"]

node_studio_user -->|"uses"| node_studio_app
node_studio_app -->|"manages connections"| node_connections
node_connections -->|"resolves"| node_connection_info
node_query_tab -->|"queries through"| node_connection_info
node_connection_info -->|"creates proxy"| node_service_proxy
node_connection_info -->|"creates query context"| node_query_context
node_query_context -->|"uses"| node_service_proxy
node_query_api -->|"executes in"| node_query_context
node_query_tab -->|"starts subscriptions"| node_subscriptions
node_subscriptions -->|"creates subscription"| node_connection_info
node_subscriptions -->|"opens listener"| node_subscription_host
node_subscriptions -->|"implements subscriber"| node_notification_contract
node_query_tab -->|"starts playback"| node_playback
node_studio_user -.->|"explores schema"| node_metadata
node_studio_user -.->|"browses objects"| node_explorer
node_studio_user -.->|"runs object actions"| node_object_ops
node_ps_user -->|"uses"| node_ps_commands
node_ps_commands -->|"connects through"| node_service_proxy
node_ps_commands -->|"acquires OAuth token"| node_oauth
node_db_command -->|"executes on"| node_db_connection
node_db_connection -->|"initializes proxy"| node_service_proxy
node_service_proxy -->|"calls service"| node_contract_api
node_service_proxy -->|"logs activity"| node_logging_api
node_orion -.->|"serves requests"| node_service_proxy

click node_studio_app "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Program.cs"
click node_connections "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/ConnectionsManager.cs"
click node_connection_info "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/ConnectionInfo.cs"
click node_query_tab "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/QueryTab.cs"
click node_metadata "https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio/Metadata"
click node_explorer "https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio/ObjectExplorer"
click node_object_ops "https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio"
click node_subscriptions "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Subscriptions/SubscriptionManager.cs"
click node_subscription_host "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Subscriptions/SubscriptionServiceHost.cs"
click node_playback "https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Playback/PlaybackManager.cs"
click node_contract_api "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/IInformationService.cs"
click node_service_proxy "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InfoServiceProxy.cs"
click node_query_context "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceContext.cs"
click node_query_api "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceQueryOfT.cs"
click node_db_connection "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceClient/InformationServiceConnection.cs"
click node_db_command "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceClient/InformationServiceCommand.cs"
click node_oauth "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/OAuthTokenManager.cs"
click node_notification_contract "https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/PubSub/INotificationSubscriber.cs"
click node_ps_commands "https://github.com/solarwinds/orionsdk/tree/master/Src/SwisPowerShell"
click node_logging_api "https://github.com/solarwinds/orionsdk/blob/master/Src/Logging/Log.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio_app,node_connections,node_connection_info,node_query_tab,node_metadata,node_explorer,node_object_ops,node_subscriptions,node_subscription_host,node_playback,node_studio_user,node_ps_user toneBlue
class node_contract_api,node_service_proxy,node_query_context,node_query_api,node_db_connection,node_db_command,node_oauth,node_notification_contract toneAmber
class node_ps_commands toneMint
class node_logging_api toneRose
class node_orion toneIndigo
```

## Components

### SWQL Studio

- [Studio application](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Program.cs): `Src/SwqlStudio/Program.cs`
- [Connection manager](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/ConnectionsManager.cs): `Src/SwqlStudio/ConnectionsManager.cs`
- [Server connection](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/ConnectionInfo.cs): `Src/SwqlStudio/ConnectionInfo.cs`
- [Query and results](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/QueryTab.cs): `Src/SwqlStudio/QueryTab.cs`
- [Schema metadata](https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio/Metadata): `Src/SwqlStudio/Metadata`
- [Object explorer](https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio/ObjectExplorer): `Src/SwqlStudio/ObjectExplorer`
- [Object and verb tabs](https://github.com/solarwinds/orionsdk/tree/master/Src/SwqlStudio): `Src/SwqlStudio`
- [Subscriptions](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Subscriptions/SubscriptionManager.cs): `Src/SwqlStudio/Subscriptions/SubscriptionManager.cs`
- [Notification listener](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Subscriptions/SubscriptionServiceHost.cs): `Src/SwqlStudio/Subscriptions/SubscriptionServiceHost.cs`
- [Query playback](https://github.com/solarwinds/orionsdk/blob/master/Src/SwqlStudio/Playback/PlaybackManager.cs): `Src/SwqlStudio/Playback/PlaybackManager.cs`

### Information Service Contract

- [Service contract](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/IInformationService.cs): `Src/Contract/IInformationService.cs`
- [Service proxy](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InfoServiceProxy.cs): `Src/Contract/InfoServiceProxy.cs`
- [Query context](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceContext.cs): `Src/Contract/InformationServiceContext.cs`
- [Typed query](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceQueryOfT.cs): `Src/Contract/InformationServiceQueryOfT.cs`
- [ADO connection](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceClient/InformationServiceConnection.cs): `Src/Contract/InformationServiceClient/InformationServiceConnection.cs`
- [ADO command](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/InformationServiceClient/InformationServiceCommand.cs): `Src/Contract/InformationServiceClient/InformationServiceCommand.cs`
- [OAuth token manager](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/OAuthTokenManager.cs): `Src/Contract/OAuthTokenManager.cs`
- [Notification contract](https://github.com/solarwinds/orionsdk/blob/master/Src/Contract/PubSub/INotificationSubscriber.cs): `Src/Contract/PubSub/INotificationSubscriber.cs`

### PowerShell Module

- [SWIS cmdlets](https://github.com/solarwinds/orionsdk/tree/master/Src/SwisPowerShell): `Src/SwisPowerShell`

### Logging

- [Logging facade](https://github.com/solarwinds/orionsdk/blob/master/Src/Logging/Log.cs): `Src/Logging/Log.cs`

### Other components

- **Studio user**
- **PowerShell user**
- **Orion platform**

## Connections

- Studio user → Studio application: uses (evidence: `README.md`)
- Studio application → Connection manager: manages connections (evidence: `Src/SwqlStudio/Program.cs`)
- Connection manager → Server connection: resolves (evidence: `Src/SwqlStudio/ConnectionsManager.cs`)
- Query and results → Server connection: queries through (evidence: `Src/SwqlStudio/QueryTab.cs`)
- Server connection → Service proxy: creates proxy (evidence: `Src/SwqlStudio/ConnectionInfo.cs`)
- Server connection → Query context: creates query context (evidence: `Src/SwqlStudio/ConnectionInfo.cs`)
- Query context → Service proxy: uses (evidence: `Src/Contract/InformationServiceContext.cs`)
- Typed query → Query context: executes in (evidence: `Src/Contract/InformationServiceQueryOfT.cs`)
- Query and results → Subscriptions: starts subscriptions (evidence: `Src/SwqlStudio/QueryTab.cs`)
- Subscriptions → Server connection: creates subscription (evidence: `Src/SwqlStudio/Subscriptions/SubscriptionManager.cs`)
- Subscriptions → Notification listener: opens listener (evidence: `Src/SwqlStudio/Subscriptions/SubscriptionManager.cs`)
- Subscriptions → Notification contract: implements subscriber (evidence: `Src/SwqlStudio/Subscriptions/SubscriptionManager.cs`)
- Query and results → Query playback: starts playback (evidence: `Src/SwqlStudio/Playback/PlaybackManager.cs`)
- Studio user → Schema metadata: explores schema (evidence: `README.md`)
- Studio user → Object explorer: browses objects (evidence: `README.md`)
- Studio user → Object and verb tabs: runs object actions (evidence: `README.md`)
- PowerShell user → SWIS cmdlets: uses (evidence: `README.md`)
- SWIS cmdlets → Service proxy: connects through (evidence: `Src/SwisPowerShell/ConnectSwis.cs`)
- SWIS cmdlets → OAuth token manager: acquires OAuth token (evidence: `Src/SwisPowerShell/ConnectSwisOAuth.cs`)
- ADO command → ADO connection: executes on (evidence: `Src/Contract/InformationServiceClient/InformationServiceCommand.cs`)
- ADO connection → Service proxy: initializes proxy (evidence: `Src/Contract/InformationServiceClient/InformationServiceConnection.cs`)
- Service proxy → Service contract: calls service (evidence: `Src/Contract/InfoServiceProxy.cs`)
- Service proxy → Logging facade: logs activity (evidence: `Src/Contract/InfoServiceProxy.cs`)
- Orion platform → Service proxy: serves requests
