Move IBuilder and related components to the Ms.AspNet.Builder namespace.
This commit is contained in:
parent
0ecb989103
commit
8b26f1d319
|
|
@ -17,9 +17,9 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.AspNet.Http;
|
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
|
public static class MapExtensions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
// permissions and limitations under the License.
|
// permissions and limitations under the License.
|
||||||
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
public class MapMiddleware
|
public class MapMiddleware
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,9 @@
|
||||||
// See the Apache 2 License for the specific language governing
|
// See the Apache 2 License for the specific language governing
|
||||||
// permissions and limitations under the License.
|
// permissions and limitations under the License.
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Options for the Map middleware
|
/// Options for the Map middleware
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Http;
|
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 Predicate = Func<HttpContext, bool>;
|
||||||
using PredicateAsync = Func<HttpContext, Task<bool>>;
|
using PredicateAsync = Func<HttpContext, Task<bool>>;
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
// permissions and limitations under the License.
|
// permissions and limitations under the License.
|
||||||
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
public class MapWhenMiddleware
|
public class MapWhenMiddleware
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,9 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Options for the MapWhen middleware
|
/// Options for the MapWhen middleware
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
using System;
|
using System;
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public static class RunExtensions
|
public static class RunExtensions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public static class UseExtensions
|
public static class UseExtensions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public interface IBuilder
|
public interface IBuilder
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
// See the Apache 2 License for the specific language governing
|
// See the Apache 2 License for the specific language governing
|
||||||
// permissions and limitations under the License.
|
// permissions and limitations under the License.
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
// TODO: [AssemblyNeutral]
|
// TODO: [AssemblyNeutral]
|
||||||
public interface IServerInformation
|
public interface IServerInformation
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,9 @@
|
||||||
// permissions and limitations under the License.
|
// permissions and limitations under the License.
|
||||||
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public delegate Task RequestDelegate(HttpContext context);
|
public delegate Task RequestDelegate(HttpContext context);
|
||||||
}
|
}
|
||||||
|
|
@ -23,7 +23,7 @@ using Microsoft.AspNet.FeatureModel;
|
||||||
using Microsoft.AspNet.Owin;
|
using Microsoft.AspNet.Owin;
|
||||||
using Microsoft.AspNet.PipelineCore;
|
using Microsoft.AspNet.PipelineCore;
|
||||||
|
|
||||||
namespace Microsoft.AspNet
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
using AppFunc = Func<IDictionary<string, object>, Task>;
|
using AppFunc = Func<IDictionary<string, object>, Task>;
|
||||||
using CreateMiddleware = Func<
|
using CreateMiddleware = Func<
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.PipelineCore
|
namespace Microsoft.AspNet.Builder
|
||||||
{
|
{
|
||||||
public class Builder : IBuilder
|
public class Builder : IBuilder
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.AspNet.HttpFeature;
|
using Microsoft.AspNet.HttpFeature;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
public class FakeHttpRequestFeature : IHttpRequestFeature
|
public class FakeHttpRequestFeature : IHttpRequestFeature
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,13 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.AspNet.HttpFeature;
|
using Microsoft.AspNet.HttpFeature;
|
||||||
using Microsoft.AspNet.PipelineCore;
|
using Microsoft.AspNet.PipelineCore;
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
public class MapPathMiddlewareTests
|
public class MapPathMiddlewareTests
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,12 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.AspNet.HttpFeature;
|
using Microsoft.AspNet.HttpFeature;
|
||||||
using Microsoft.AspNet.PipelineCore;
|
using Microsoft.AspNet.PipelineCore;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Http.Extensions
|
namespace Microsoft.AspNet.Builder.Extensions
|
||||||
{
|
{
|
||||||
using AppFunc = Func<IDictionary<string, object>, Task>;
|
using AppFunc = Func<IDictionary<string, object>, Task>;
|
||||||
using Predicate = Func<HttpContext, bool>;
|
using Predicate = Func<HttpContext, bool>;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
using Microsoft.AspNet.Http;
|
using Microsoft.AspNet.Http;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.PipelineCore.Tests
|
namespace Microsoft.AspNet.Builder.Tests
|
||||||
{
|
{
|
||||||
public class BuilderTests
|
public class BuilderTests
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue