Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Consider changing WebApplication* to WebHost* #567

Closed
@davidfowl

Description

@davidfowl

We have IWebApplicationBuilder, WebApplicationBuilder, IWebApplication, and IApplicationBuilder.

IApplicationBuilder looks related to IWebApplicationBuilder but they are not.

Today:

var app = new WebApplicationBuilder()
                        .UseServer("Microsoft.AspNet.Server.Kestrel")
                        .UseUrls("http://localhost:5001")
                        .UseStartup<Startup>()
                        .Build();

app.Run();

Potentially changed to:

var host = new WebHostBuilder()
                        .UseServer("Microsoft.AspNet.Server.Kestrel")
                        .UseUrls("http://localhost:5001")
                        .UseStartup<Startup>()
                        .Build();

host.Run();

IWebHostBuilder builds the IWebHost

/cc @lodejard @Tratcher @JunTaoLuo @DamianEdwards Thoughts? I'm not 100% on the naming though and I also don't think this matters that much but think about it a little 😄

This is the hosting repository and we are hosting ASP.NET so it sorta makes sense.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions