Update config - #3
Merged
Merged
Conversation
…est of the app. Fixed incorrect image name in docker-compose. Added test project to solution so dotnet test will work as a command to run the tests
… access from Codespaces
sis0k0
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request makes several improvements to configuration, startup behavior, and documentation for the MongoDB .NET example project. The main focus is to move configuration from environment variables to strongly-typed settings in
appsettings.json, modernize the health check endpoint, and clarify documentation and devcontainer setup. It also introduces a new settings model for startup behavior and updates related code and docs accordingly.Configuration and Startup Behavior Modernization
Introduced a new
StartupBehaviorSettingsmodel, moving theSeedOnStartupflag from theSEED_ON_STARTUPenvironment variable to a strongly-typedStartupBehaviorSettings:SeedOnStartupentry inappsettings.jsonandappsettings.Development.json. UpdatedStartup.csto use this setting via dependency injection, removing direct environment variable reads.Updated documentation (
README.md,AGENTS.md,EDD.md) to reflect the new configuration approach, replacing references to environment variables with app settings sections and keys. Clarified that environment variables are now optional overrides.Health Check Endpoint Update
/healthzto/healthin both code and documentation for consistency and convention.Devcontainer and Environment Improvements
.devcontainer/devcontainer.jsonto set port 5000 visibility to public, improving GitHub Codespaces usability.Solution and Project Structure
These updates collectively make configuration more robust and discoverable, improve developer onboarding, and align the project with modern .NET best practices.