Move IBuilder and related components to the Ms.AspNet.Builder namespace.

This commit is contained in:
Chris Ross 2014-05-05 21:05:21 -07:00
parent 0ecb989103
commit 8b26f1d319
17 changed files with 27 additions and 19 deletions

View File

@ -17,9 +17,9 @@
using System;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Extensions;
using Microsoft.AspNet.Builder.Extensions;
namespace Microsoft.AspNet
namespace Microsoft.AspNet.Builder
{
public static class MapExtensions
{

View File

@ -16,8 +16,9 @@
// permissions and limitations under the License.
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
public class MapMiddleware
{

View File

@ -15,7 +15,9 @@
// See the Apache 2 License for the specific language governing
// permissions and limitations under the License.
namespace Microsoft.AspNet.Http.Extensions
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Builder.Extensions
{
/// <summary>
/// Options for the Map middleware

View File

@ -18,9 +18,9 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Extensions;
using Microsoft.AspNet.Builder.Extensions;
namespace Microsoft.AspNet
namespace Microsoft.AspNet.Builder
{
using Predicate = Func<HttpContext, bool>;
using PredicateAsync = Func<HttpContext, Task<bool>>;

View File

@ -16,8 +16,9 @@
// permissions and limitations under the License.
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
public class MapWhenMiddleware
{

View File

@ -17,8 +17,9 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
/// <summary>
/// Options for the MapWhen middleware

View File

@ -18,7 +18,7 @@
using System;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet
namespace Microsoft.AspNet.Builder
{
public static class RunExtensions
{

View File

@ -19,7 +19,7 @@ using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet
namespace Microsoft.AspNet.Builder
{
public static class UseExtensions
{

View File

@ -17,7 +17,7 @@
using System;
namespace Microsoft.AspNet.Http
namespace Microsoft.AspNet.Builder
{
public interface IBuilder
{

View File

@ -15,7 +15,7 @@
// See the Apache 2 License for the specific language governing
// permissions and limitations under the License.
namespace Microsoft.AspNet.Http
namespace Microsoft.AspNet.Builder
{
// TODO: [AssemblyNeutral]
public interface IServerInformation

View File

@ -16,8 +16,9 @@
// permissions and limitations under the License.
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.Http
namespace Microsoft.AspNet.Builder
{
public delegate Task RequestDelegate(HttpContext context);
}

View File

@ -23,7 +23,7 @@ using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Owin;
using Microsoft.AspNet.PipelineCore;
namespace Microsoft.AspNet
namespace Microsoft.AspNet.Builder
{
using AppFunc = Func<IDictionary<string, object>, Task>;
using CreateMiddleware = Func<

View File

@ -21,7 +21,7 @@ using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Builder
{
public class Builder : IBuilder
{

View File

@ -20,7 +20,7 @@ using System.Collections.Generic;
using System.IO;
using Microsoft.AspNet.HttpFeature;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
public class FakeHttpRequestFeature : IHttpRequestFeature
{

View File

@ -17,12 +17,13 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore;
using Shouldly;
using Xunit;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
public class MapPathMiddlewareTests
{

View File

@ -18,11 +18,12 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore;
using Xunit;
namespace Microsoft.AspNet.Http.Extensions
namespace Microsoft.AspNet.Builder.Extensions
{
using AppFunc = Func<IDictionary<string, object>, Task>;
using Predicate = Func<HttpContext, bool>;

View File

@ -18,7 +18,7 @@
using Microsoft.AspNet.Http;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
namespace Microsoft.AspNet.Builder.Tests
{
public class BuilderTests
{