Skip to content

Update from main - #5

Merged
LuceCarter merged 4 commits into
update-configfrom
main
Aug 28, 2026
Merged

Update from main#5
LuceCarter merged 4 commits into
update-configfrom
main

Conversation

@LuceCarter

Copy link
Copy Markdown
Collaborator

This pull request refactors the application's startup process to use the minimal hosting model introduced in newer versions of ASP.NET Core. It removes the legacy Startup.cs file and consolidates all configuration and middleware setup into Program.cs. Additionally, it introduces a telemetry script that logs codespace lifecycle events for development containers.

Key changes include:

Application Startup Refactor

  • Migrated all service configuration and middleware setup from Startup.cs to the new minimal hosting model in Program.cs, simplifying the application entry point and making use of modern ASP.NET Core conventions. (Program.cs [1] Startup.cs [2]

Developer Experience & Telemetry

  • Added a new script, track.sh, to the .devcontainer folder, which sends best-effort telemetry about codespace lifecycle events (such as creation and startup) without impacting developer workflow. (.devcontainer/track.sh .devcontainer/track.shR1-R9)
  • Updated .devcontainer/devcontainer.json to invoke the telemetry script during post-create and post-start events, improving visibility into codespace usage. (.devcontainer/devcontainer.json .devcontainer/devcontainer.jsonL30-R31)

sis0k0 and others added 4 commits August 25, 2026 07:25
Replicates the tracking setup from mongodb-developer/mean-stack-example:
.devcontainer/track.sh plus postCreateCommand/postStartCommand hooks that
best-effort report created/started events to the shared codespace-telemetry
function. Appended with || true so telemetry can never break the dev
environment.
Consolidate ConfigureServices/Configure into Program.cs using the
.NET minimal hosting APIs, matching current ASP.NET Core convention.
Migrate to minimal hosting model, remove Startup.cs
@LuceCarter
LuceCarter merged commit 64ad50c into update-config Aug 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants