Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AspireShop: Simplify WithHttpCommand #713

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

DamianEdwards
Copy link
Member

Changes the AspireShop sample so that the WithHttpCommand works by default against endpoints named "https" or "http".

Fixes #677

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR simplifies the AspireShop sample by consolidating HTTP command creation. The key changes are:

  • Removal of the separate WithHttpsCommand method in favor of WithHttpCommand.
  • Modification of the WithHttpCommand overload to accept an array of endpoint names.
  • Removal of the scheme validation check in WithHttpCommandImpl.

Reviewed Changes

File Description
samples/AspireShop/AspireShop.AppHost/ResourceBuilderExtensions.cs Consolidates HTTP command methods, updates endpoint name handling, and removes the expected scheme check.
samples/AspireShop/AspireShop.AppHost/Program.cs Updates usage of the HTTP command helper from WithHttpsCommand to WithHttpCommand.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@DamianEdwards DamianEdwards merged commit c7edffc into main Feb 26, 2025
3 checks passed
@DamianEdwards DamianEdwards deleted the damianedwards/AspireShop-command branch February 26, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants