How technologyenhancedlearning/learninghub.nhs.content works
Learning Hub Content Server supports two related workflows: ESR-style remote content launch by serving files from Azure storage, and historic URL launch by resolving migrated URLs and rewriting requests to Learning Hub content. The graph includes the API, caching, and request-metrics layers indicated by the sampled source. Several middleware and registration details are only partially excerpted; edges are limited to relationships shown in excerpts, the source index, or README.
Main entry points: Startup.cs Web application setup · ContentRewriteService.cs Rewrite service · ResourceContentRewriteRule.cs Rewrite rule · LHContentController.cs Content controller
Components 17
Content launch
- Content controller
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Controllers/LHContentController.cs - File service
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/FileService.cs - File service contract
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Interfaces/IFileService.cs - Request metrics
LearningHub.Nhs.Content/LearningHub.Nhs.Content/EventSource/ScormContentEventSource.cs
URL rewriting
- Rewrite rule
LearningHub.Nhs.Content/LearningHub.Nhs.Content/ResourceContentRewriteRule.cs - Rewrite service
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/ContentRewriteService.cs - Source types
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Models/SourceType.cs - Source extensions
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Extensions/SourceSystemExtensions.cs
Service integrations
- Azure file storage
- Learning Hub HTTP client
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/LearningHubHttpClient.cs - HTTP client contract
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Interfaces/ILearningHubHttpClient.cs - Learning Hub API
- Distributed cache
Application runtime
- Application settings
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Configuration/Settings.cs - Web application setup
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Startup.cs - Host entry point
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Program.cs
Other components
- Requesting client
Connections 17
- Requesting client → Rewrite rule: sends URL
LearningHub.Nhs.Content/LearningHub.Nhs.Content/ResourceContentRewriteRule.cs - Requesting client → Content controller: requests file
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Controllers/LHContentController.cs - Rewrite rule → Rewrite service: resolves content
LearningHub.Nhs.Content/LearningHub.Nhs.Content/ResourceContentRewriteRule.cs - Rewrite service → Learning Hub HTTP client: gets client
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/ContentRewriteService.cs - Rewrite service → Learning Hub API: requests content data
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/ContentRewriteService.cs - Learning Hub HTTP client → Learning Hub API: configures API client
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/LearningHubHttpClient.cs - Rewrite service → Distributed cache: reads and writes
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/ContentRewriteService.cs - Content controller → File service: downloads file
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Controllers/LHContentController.cs - File service → Azure file storage: reads and archives
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Service/FileService.cs - Content controller → Request metrics: records metrics
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Controllers/LHContentController.cs - Source extensions → Source types: uses types
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Extensions/SourceSystemExtensions.cs - Rewrite rule → Source types: uses types
LearningHub.Nhs.Content/LearningHub.Nhs.Content/ResourceContentRewriteRule.cs - Web application setup → Rewrite rule: registers middleware
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Startup.cs - Web application setup → File service: registers service
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Startup.cs - Web application setup → Rewrite service: registers service
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Startup.cs - Web application setup → Learning Hub HTTP client: registers client
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Startup.cs - Host entry point → Web application setup: starts web host
LearningHub.Nhs.Content/LearningHub.Nhs.Content/Program.cs