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

Renaming WebApplication* to WebHost* #577

Merged
merged 1 commit into from
Jan 17, 2016
Merged

Renaming WebApplication* to WebHost* #577

merged 1 commit into from
Jan 17, 2016

Conversation

JunTaoLuo
Copy link
Contributor

#567 Did I missed anything? @Tratcher @davidfowl If not, I'll make all the updates to other repos tomorrow directly to their dev.

@davidfowl
Copy link
Member

Looks good. As part of this change we should add 2 extension methods to clean up the Program.Main a bit more:

public static IWebHostBuilder UseDefaultConfiguration(this IWebHostBuilder builder)
{
    return builder.UseDefaultConfiguration(args: null);
}

public static IWebHostBuilder UseDefaultConfiguration(this IWebHostBuilder builder, string[] args)
{
    return builder.UseConfiguration(WebHostConfiguration.GetDefault(args));
}


namespace Microsoft.AspNet.Hosting
{
public interface IWebHostBuilder
Copy link
Member

Choose a reason for hiding this comment

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

Add doc comments to the interface while you're at it?

@Tratcher
Copy link
Member

Hosting.json -> WebHost.json wasn't a terrible suggestion. @davidfowl?

@davidfowl
Copy link
Member

Hosting.json -> WebHost.json wasn't a terrible suggestion. @davidfowl?

Nah, I dont see a reason to change it.

@JunTaoLuo
Copy link
Contributor Author

🆙📅


namespace Microsoft.AspNet.Hosting
{
public static class WebHostBuilderExtensions
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidfowl, @Tratcher also wanted to change this to something like WebHostBuilderBasicExtensions. I suggest *CoreExtensions if we really need to differentiate.

Copy link
Member

Choose a reason for hiding this comment

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

Basic? Core? Why? This is the original library, everyone else can pick a worse name 😄

@davidfowl
Copy link
Member

:shipit:

@JunTaoLuo JunTaoLuo force-pushed the johluo/webapp-rename branch from da39401 to aaf27a0 Compare January 17, 2016 22:48
@JunTaoLuo JunTaoLuo force-pushed the johluo/webapp-rename branch from aaf27a0 to cad9ea1 Compare January 17, 2016 23:34
@JunTaoLuo JunTaoLuo merged commit cad9ea1 into dev Jan 17, 2016
@JunTaoLuo JunTaoLuo deleted the johluo/webapp-rename branch January 17, 2016 23:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants