Skip to content

Critera for selecting IHostApplicationBuilder vs IHostBuilder should be made clearer #46082

Open
@willdean

Description

@willdean

Type of issue

Missing information

Description

The linked page contains several sets of example code, in tabbed pairs (e.g. in "Set up a host"), but does not seem to contain any information about why one should select one tab or the other.

This is a pretty tricky area to understand as, over time, dotnet has basically used every possible combination of the words "Builder", "Host", "Application" and "Web" (with and without the letter "I") to describe the innumerable different ways of setting up the start of an application.

I think it would be good if, before we got to the first two alternative examples in "Set up a host", it was explained why one would choose IHostApplicationBuilder instead of IHostBuilder. Or, at the least, what the functional difference was between the two examples.

Page URL

https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host?tabs=appbuilder

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/extensions/generic-host.md

Document Version Independent Id

22a12ff8-d2ff-a841-b9bb-e2fd1032bc04

Platform Id

3b476193-005a-256b-77a1-c15957a55240

Article author

@IEvangelist

Metadata

  • ID: d43ecd7c-307a-688e-d533-c1135bde65f9
  • PlatformId: 3b476193-005a-256b-77a1-c15957a55240
  • Service: dotnet-fundamentals

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions