This repository was archived by the owner on Dec 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Renaming WebApplication* to WebHost* #577
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
src/Microsoft.AspNet.Hosting.Abstractions/IWebApplicationBuilder.cs
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/Microsoft.AspNet.Hosting.Abstractions/IWebHostBuilder.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.AspNet.Builder; | ||
using Microsoft.AspNet.Hosting.Server; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace Microsoft.AspNet.Hosting | ||
{ | ||
/// <summary> | ||
/// A builder for <see cref="IWebHost"/> | ||
/// </summary> | ||
public interface IWebHostBuilder | ||
{ | ||
/// <summary> | ||
/// Builds an <see cref="IWebHost"/> which hosts a web application. | ||
/// </summary> | ||
IWebHost Build(); | ||
|
||
/// <summary> | ||
/// Gets the raw settings to be used by the web host. Values specified here will override | ||
/// the configuration set by <see cref="UseConfiguration(IConfiguration)"/>. | ||
/// </summary> | ||
IDictionary<string, string> Settings { get; } | ||
|
||
/// <summary> | ||
/// Specify the <see cref="IConfiguration"/> to be used by the web host. If no configuration is | ||
/// provided to the builder, the default configuration will be used. | ||
/// </summary> | ||
/// <param name="configuration">The <see cref="IConfiguration"/> to be used.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder UseConfiguration(IConfiguration configuration); | ||
|
||
/// <summary> | ||
/// Specify the <see cref="IServerFactory"/> to be used by the web host. | ||
/// </summary> | ||
/// <param name="factory">The <see cref="IServerFactory"/> to be used.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder UseServer(IServerFactory factory); | ||
|
||
/// <summary> | ||
/// Specify the startup type to be used by the web host. | ||
/// </summary> | ||
/// <param name="startupType">The <see cref="Type"/> to be used.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder UseStartup(Type startupType); | ||
|
||
/// <summary> | ||
/// Specify the delegate that is used to configure the services of the web application. | ||
/// </summary> | ||
/// <param name="configureServices">The delegate that configures the <see cref="IServiceCollection"/>.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices); | ||
|
||
/// <summary> | ||
/// Specify the startup method to be used to configure the web application. | ||
/// </summary> | ||
/// <param name="configureApplication">The delegate that configures the <see cref="IApplicationBuilder"/>.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder Configure(Action<IApplicationBuilder> configureApplication); | ||
|
||
/// <summary> | ||
/// Add or replace a setting in <see cref="Settings"/>. | ||
/// </summary> | ||
/// <param name="key">The key of the setting to add or replace.</param> | ||
/// <param name="value">The value of the setting to add or replace.</param> | ||
/// <returns>The <see cref="IWebHostBuilder"/>.</returns> | ||
IWebHostBuilder UseSetting(string key, string value); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?