Skip to content
New issue

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

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

Already on GitHub? # to your account

Add IHostApplicationBuilder interface #86974

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented May 31, 2023

  • Move ILoggingBuilder from MS.Ext.Logging to MS.Ext.Logging.Abstractions so IHostApplicationBuilder can reference it.
  • Add IConfigurationManager and implement it in ConfigurationManager.

Fix #85486

@dotnet-issue-labeler
Copy link

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

@ghost ghost assigned eerhardt May 31, 2023
@ghost
Copy link

ghost commented May 31, 2023

Tagging subscribers to this area: @dotnet/area-extensions-hosting
See info in area-owners.md if you want to be subscribed.

Issue Details

Fix #85486

Author: eerhardt
Assignees: -
Labels:

new-api-needs-documentation, area-Extensions-Hosting

Milestone: -

@eerhardt eerhardt force-pushed the AddIHostApplicationBuilder branch from d178727 to e0902fe Compare June 1, 2023 23:28
@eerhardt eerhardt marked this pull request as ready for review June 1, 2023 23:28
- Move ILoggingBuilder from MS.Ext.Logging to MS.Ext.Logging.Abstractions so IHostApplicationBuilder can reference it.
- Add IConfigurationManager and implement it in ConfigurationManager.
- Add CompatiibilitySuppressions. These errors are caused by ILoggingBuilder being moved to Logging.Abstractions, and ApiCompat not respecting TypeForwardedTo attributes.

Fix dotnet#85486
@eerhardt eerhardt force-pushed the AddIHostApplicationBuilder branch from e0902fe to 75ea342 Compare June 3, 2023 03:42
Copy link
Member

@IEvangelist IEvangelist left a comment

Choose a reason for hiding this comment

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

Love this!

@eerhardt
Copy link
Member Author

eerhardt commented Jun 8, 2023

@eerhardt eerhardt merged commit 19dbb7f into dotnet:main Jun 8, 2023
@eerhardt eerhardt deleted the AddIHostApplicationBuilder branch June 8, 2023 19:25
eerhardt added a commit to eerhardt/aspnetcore that referenced this pull request Jun 13, 2023
dotnet/runtime#86974 added support for a common interface between HostApplicationBuilder and WebApplicationBuilder. This implements the new interface on WebApplicationBuilder.
eerhardt added a commit to dotnet/aspnetcore that referenced this pull request Jun 15, 2023
dotnet/runtime#86974 added support for a common interface between HostApplicationBuilder and WebApplicationBuilder. This implements the new interface on WebApplicationBuilder.
@ghost ghost locked as resolved and limited conversation to collaborators Jul 9, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[API Proposal]: Add IHostApplicationBuilder interface
9 participants