PolyhydraGames.CDN
1.0.3.208
dotnet add package PolyhydraGames.CDN --version 1.0.3.208
NuGet\Install-Package PolyhydraGames.CDN -Version 1.0.3.208
<PackageReference Include="PolyhydraGames.CDN" Version="1.0.3.208" />
<PackageVersion Include="PolyhydraGames.CDN" Version="1.0.3.208" />
<PackageReference Include="PolyhydraGames.CDN" />
paket add PolyhydraGames.CDN --version 1.0.3.208
#r "nuget: PolyhydraGames.CDN, 1.0.3.208"
#:package PolyhydraGames.CDN@1.0.3.208
#addin nuget:?package=PolyhydraGames.CDN&version=1.0.3.208
#tool nuget:?package=PolyhydraGames.CDN&version=1.0.3.208
Polyhydra CDN & Retro Media Engine
The primary backend service for the Polyhydra CDN ecosystem, consolidating media management, automated indexing, and retro-gaming metadata enrichment.
Tags
- api
- api-cdn
- dotnet
- cdn
- docs
- testing
Related Repos
Project Structure
- WebAPI (
src/WebAPI): Consolidated service for media clips, CDN indexing, and the RetroAchievements proxy. - RetroMedia Library (
src/Api.RetroMedia): Core business logic, parsers, and platform rules. - UI & Tools: WPF and Core conversion utilities.
Documentation
Comprehensive feature and infrastructure documentation can be found in the docs/features directory:
- System Overview
- Folder Structure & Mapping
- WebAPI Features
- RetroMedia Library
- RetroAchievements Integration
- Infrastructure & Deployment
Getting Started
Local Development
The project uses the modern .slnx solution format.
# Open the solution in VS 2022 or Rider
PolyhydraGames.Api.CDN.slnx
Running the API
cd src/WebAPI
dotnet run
Swagger UI will be available at: http://localhost:5000/swagger
Testing
The project uses NUnit for unit testing. Some tests require a mock CDN directory structure.
# Run all tests
dotnet test
Local CDN fallback for development and validation
When the expected CDN mount paths (for example /mnt/syn2/cdn/roms) are not available on a local workstation, use deterministic fixture or temporary-root validation instead of guessing at live CDN state. Local validation should point the Cdn configuration at a known fixture tree or a disposable temp directory that contains the required gamelist.xml and media samples for the test being exercised.
Required Cdn values for local runs are:
RootPath: root of the local or fixture CDN tree.RetroPath: retro-media subpath when the code path expects one; keep it aligned with the fixture layout.ArchiveRoot: writable archive/temp location for archive-related tests or local runs.BaseUrl: base URL used when generated links are asserted or smoke-tested.
RetroAchievements (RaUser/RaKey) credentials are only required for live RA/online smoke paths. Do not add or invent secrets for deterministic local tests; remote CDN and RA checks should remain smoke-only and should be documented as such in the validation handoff.
If the intended mount path, runtime host, or credential boundary differs from the existing docs, block and add an explicit note rather than guessing. The setup/readiness rule is: deterministic fixture/temp-root tests prove local behavior; live CDN/RA checks only prove connectivity and current external availability.
Documentation
XML documentation is enabled for the core library. Build the project to generate the .xml documentation file.
Configuration
Configure the Cdn section in appsettings.json or Environment Variables:
"Cdn": {
"RootPath": "/path/to/cdn",
"ArchiveRoot": "/var/lib/polyhydra/cdn-archive",
"ScanIntervalMinutes": 60,
"BaseUrl": "https://your-cdn-url.com",
"RaUser": "RA_USERNAME",
"RaKey": "RA_API_KEY"
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- PolyhydraGames.Core.Interfaces (>= 2.0.0.45)
- PolyhydraGames.Core.Interfaces.Gaming (>= 1.0.0.13)
- PolyhydraGames.Extensions (>= 2.1.1.78)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.