# azure-developer-support/coderepository architecture

> Architecture diagram of the GitHub repository azure-developer-support/coderepository, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azure-developer-support/coderepository
- Repository: https://github.com/azure-developer-support/coderepository

## Overview

This repository is a collection of independent Azure developer-support samples, not one deployed application. The principal workflow varies by sample: a developer runs a scenario-specific client or script to exercise an Azure service. The graph groups the represented capabilities and shows the better-evidenced Service Fabric actor and Android notification flows. Most other samples were not excerpted, so their internal calls and data paths are not inferred.

Main entry points: [`Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`](https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs) (Android push service), [`Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs) (Persisted counter actor), [`Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs`](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs) (Actor REST API), [`Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs`](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs) (Actor simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fabric["Service Fabric sample"]
  node_simulator["Actor simulator<br/>[Program.cs]"]
  node_api["Actor REST API"]
  node_actorwrap["Actor request model<br/>[ActorWrap.cs]"]
  node_actorcontract["Actor contract<br/>[IConActor.cs]"]
  node_actor["Persisted counter actor<br/>[ConActor.cs]"]
  node_actorstate[("Actor state manager<br/>[ConActor.cs]")]
  node_consumer["Stateless web service<br/>[ConsumerService.cs]"]
  node_forecast["Weather forecast API"]
  node_forecastmodel["Forecast model<br/>[WeatherForecast.cs]"]
  node_serviceevents["Service event source"]
  node_actorevents["Actor event source"]
end

subgraph group_notify["Notification Hub sample"]
  node_firebase["Android push service<br/>[FirebaseService.cs]"]
  node_connection["SAS connection utility"]
  node_mainactivity["Android activity<br/>[MainActivity.cs]"]
end

subgraph group_messaging["Messaging samples"]
  node_eventhub["Event Hubs examples"]
  node_servicebus["Service Bus examples"]
end

subgraph group_data["Storage and search samples"]
  node_search["Azure Search examples"]
  node_storage["Azure Storage examples"]
end

subgraph group_cache["Redis samples"]
  node_redis["Redis examples"]
end

node_firebasecloud(("Firebase messaging"))
node_notificationhub[("Azure Notification Hubs")]
node_developer(("Developer"))

node_developer -->|"runs"| node_simulator
node_simulator -->|"sends HTTP"| node_api
node_api -->|"accepts payload"| node_actorwrap
node_api -->|"invokes"| node_actorcontract
node_actor -->|"implements"| node_actorcontract
node_actor -->|"reads and writes"| node_actorstate
node_consumer -->|"logs events"| node_serviceevents
node_actor -->|"logs events"| node_actorevents
node_firebasecloud -->|"provides token"| node_firebase
node_firebase -->|"creates SAS token"| node_connection
node_firebase -->|"registers installation"| node_notificationhub
node_firebase -->|"launches notification"| node_mainactivity

click node_simulator "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs"
click node_api "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs"
click node_actorwrap "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ActorWrap.cs"
click node_actorcontract "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor.Interfaces/IConActor.cs"
click node_actor "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs"
click node_actorstate "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs"
click node_consumer "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ConsumerService.cs"
click node_forecast "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/WeatherForecastController.cs"
click node_forecastmodel "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/WeatherForecast.cs"
click node_serviceevents "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ServiceEventSource.cs"
click node_actorevents "https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ActorEventSource.cs"
click node_firebase "https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs"
click node_connection "https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/ConnectionStringUtility.cs"
click node_mainactivity "https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/MainActivity.cs"
click node_redis "https://github.com/azure-developer-support/coderepository/tree/master/AzureRedis"
click node_search "https://github.com/azure-developer-support/coderepository/tree/master/AzureSearch"
click node_eventhub "https://github.com/azure-developer-support/coderepository/tree/master/EventHub"
click node_servicebus "https://github.com/azure-developer-support/coderepository/tree/master/ServiceBus"
click node_storage "https://github.com/azure-developer-support/coderepository/tree/master/Storage"

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_simulator,node_api,node_actorwrap,node_actorcontract,node_actor,node_actorstate,node_consumer,node_forecast,node_forecastmodel,node_serviceevents,node_actorevents toneBlue
class node_firebase,node_connection,node_mainactivity,node_notificationhub toneAmber
class node_eventhub,node_servicebus toneMint
class node_search,node_storage toneRose
class node_redis,node_firebasecloud,node_developer toneIndigo
```

## Components

### Service Fabric sample

- [Actor simulator](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs`
- [Actor REST API](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs`
- [Actor request model](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ActorWrap.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ActorWrap.cs`
- [Actor contract](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor.Interfaces/IConActor.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor.Interfaces/IConActor.cs`
- [Persisted counter actor](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`
- [Actor state manager](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`
- [Stateless web service](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ConsumerService.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ConsumerService.cs`
- [Weather forecast API](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/WeatherForecastController.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/WeatherForecastController.cs`
- [Forecast model](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/WeatherForecast.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/WeatherForecast.cs`
- [Service event source](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ServiceEventSource.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ServiceEventSource.cs`
- [Actor event source](https://github.com/azure-developer-support/coderepository/blob/master/Service%20Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ActorEventSource.cs): `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ActorEventSource.cs`

### Notification Hub sample

- [Android push service](https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs): `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`
- [SAS connection utility](https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/ConnectionStringUtility.cs): `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/ConnectionStringUtility.cs`
- [Android activity](https://github.com/azure-developer-support/coderepository/blob/master/Notification%20Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/MainActivity.cs): `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/MainActivity.cs`

### Messaging samples

- [Event Hubs examples](https://github.com/azure-developer-support/coderepository/tree/master/EventHub): `EventHub`
- [Service Bus examples](https://github.com/azure-developer-support/coderepository/tree/master/ServiceBus): `ServiceBus`

### Storage and search samples

- [Azure Search examples](https://github.com/azure-developer-support/coderepository/tree/master/AzureSearch): `AzureSearch`
- [Azure Storage examples](https://github.com/azure-developer-support/coderepository/tree/master/Storage): `Storage`

### Redis samples

- [Redis examples](https://github.com/azure-developer-support/coderepository/tree/master/AzureRedis): `AzureRedis`

### Other components

- **Firebase messaging**
- **Azure Notification Hubs**
- **Developer**

## Connections

- Developer → Actor simulator: runs (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs`)
- Actor simulator → Actor REST API: sends HTTP (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/Simulator/Program.cs`)
- Actor REST API → Actor request model: accepts payload (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs`)
- Actor REST API → Actor contract: invokes (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/Controllers/ConactController.cs`)
- Persisted counter actor → Actor contract: implements (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`)
- Persisted counter actor → Actor state manager: reads and writes (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`)
- Stateless web service → Service event source: logs events (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConsumerService/ConsumerService.cs`)
- Persisted counter actor → Actor event source: logs events (evidence: `Service Fabric/SF-Actor-Consumer-Sample/src/SampleApp/ConActor/ConActor.cs`)
- Firebase messaging → Android push service: provides token (evidence: `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`)
- Android push service → SAS connection utility: creates SAS token (evidence: `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`)
- Android push service → Azure Notification Hubs: registers installation (evidence: `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`)
- Android push service → Android activity: launches notification (evidence: `Notification Hub/Android/NotificationHub.Xamarin.Android.Installations/DankersNotifications/DankersNotifications.Android/FirebaseService.cs`)
