#162 - Change PipelineCore namespace to Http.Core. Part-1.

This commit is contained in:
Chris Ross 2015-01-15 11:52:34 -08:00
parent 4fb21644fc
commit 68be1d1b19
53 changed files with 77 additions and 117 deletions

View File

@ -16,7 +16,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.HttpFeature.Security;
using Microsoft.AspNet.PipelineCore.Security;
using Microsoft.AspNet.Http.Core.Security;
namespace Microsoft.AspNet.Owin
{

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Owin;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
namespace Microsoft.AspNet.Builder
{

View File

@ -6,7 +6,7 @@ using System.IO;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.WebUtilities;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public static class BufferingHelper
{

View File

@ -4,7 +4,7 @@
using System.Collections.Generic;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
/// <summary>
/// Contains the parsed form values.

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
public class FormFileCollection : List<IFormFile>, IFormFileCollection
{

View File

@ -7,9 +7,9 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Http.Infrastructure;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Infrastructure;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
/// <summary>
/// Represents a wrapper for owin.RequestHeaders and owin.ResponseHeaders.

View File

@ -4,7 +4,7 @@
using System.Collections;
using System.Collections.Generic;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class ItemsDictionary : IDictionary<object, object>
{

View File

@ -6,7 +6,7 @@ using System.Collections;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
/// <summary>
/// Accessors for query, forms, etc.

View File

@ -5,9 +5,9 @@ using System;
using System.Collections;
using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Infrastructure;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
public class RequestCookiesCollection : IReadableStringCollection
{

View File

@ -8,7 +8,7 @@ using System.Linq;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Infrastructure;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
/// <summary>
/// A wrapper for the response Set-Cookie header

View File

@ -7,7 +7,7 @@ using System.Collections.Generic;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
namespace Microsoft.AspNet.PipelineCore.Collections
namespace Microsoft.AspNet.Http.Core.Collections
{
public class SessionCollection : ISessionCollection
{

View File

@ -14,11 +14,11 @@ using Microsoft.AspNet.Http.Infrastructure;
using Microsoft.AspNet.Http.Security;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.HttpFeature.Security;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.PipelineCore.Security;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
using Microsoft.AspNet.Http.Core.Security;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class DefaultHttpContext : HttpContext
{
@ -38,8 +38,8 @@ namespace Microsoft.AspNet.PipelineCore
public DefaultHttpContext()
: this(new FeatureCollection())
{
SetFeature<IHttpRequestFeature>(new DefaultHttpRequestFeature());
SetFeature<IHttpResponseFeature>(new DefaultHttpResponseFeature());
SetFeature<IHttpRequestFeature>(new HttpRequestFeature());
SetFeature<IHttpResponseFeature>(new HttpResponseFeature());
}
public DefaultHttpContext(IFeatureCollection features)

View File

@ -9,10 +9,10 @@ using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Infrastructure;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class DefaultHttpRequest : HttpRequest
{

View File

@ -14,11 +14,11 @@ using Microsoft.AspNet.Http.Security;
using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.HttpFeature.Security;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.PipelineCore.Security;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
using Microsoft.AspNet.Http.Core.Security;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class DefaultHttpResponse : HttpResponse
{

View File

@ -9,11 +9,11 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.WebUtilities;
using Microsoft.Net.Http.Headers;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class FormFeature : IFormFeature
{

View File

@ -4,7 +4,7 @@
using System.IO;
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class FormFile : IFormFile
{

View File

@ -6,11 +6,11 @@ using System.Collections.Generic;
using System.IO;
using Microsoft.AspNet.HttpFeature;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class DefaultHttpRequestFeature : IHttpRequestFeature
public class HttpRequestFeature : IHttpRequestFeature
{
public DefaultHttpRequestFeature()
public HttpRequestFeature()
{
Headers = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);
Body = Stream.Null;

View File

@ -6,11 +6,11 @@ using System.Collections.Generic;
using System.IO;
using Microsoft.AspNet.HttpFeature;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class DefaultHttpResponseFeature : IHttpResponseFeature
public class HttpResponseFeature : IHttpResponseFeature
{
public DefaultHttpResponseFeature()
public HttpResponseFeature()
{
StatusCode = 200;
Headers = new Dictionary<string, string[]>(StringComparer.OrdinalIgnoreCase);

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.Framework.Runtime;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IFormFeature
{

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IItemsFeature
{

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IQueryFeature
{

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.Http;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IRequestCookiesFeature
{

View File

@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Http;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.Http.Core.Collections;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IResponseCookiesFeature
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public interface IServiceProvidersFeature
{

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.FeatureModel;
namespace Microsoft.AspNet.PipelineCore.Infrastructure
namespace Microsoft.AspNet.Http.Core.Infrastructure
{
internal struct FeatureReference<T>
{

View File

@ -9,7 +9,7 @@ using System.Linq;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Infrastructure;
namespace Microsoft.AspNet.PipelineCore.Infrastructure
namespace Microsoft.AspNet.Http.Core.Infrastructure
{
internal struct HeaderSegment : IEquatable<HeaderSegment>
{

View File

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class ItemsFeature : IItemsFeature
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
internal sealed class NotNullAttribute : Attribute

View File

@ -5,11 +5,11 @@ using System.Collections.Generic;
using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
using Microsoft.AspNet.WebUtilities;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class QueryFeature : IQueryFeature
{

View File

@ -6,7 +6,7 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
/// <summary>
/// A Stream that wraps another stream starting at a certain offset and reading for the given length.

View File

@ -7,10 +7,10 @@ using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Infrastructure;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class RequestCookiesFeature : IRequestCookiesFeature
{

View File

@ -4,10 +4,10 @@
using Microsoft.AspNet.Http;
using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.PipelineCore.Infrastructure;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.AspNet.Http.Core.Infrastructure;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class ResponseCookiesFeature : IResponseCookiesFeature
{

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using Microsoft.AspNet.Http.Security;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class AuthTypeContext : IAuthTypeContext
{

View File

@ -10,7 +10,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.Http.Security;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class AuthenticateContext : IAuthenticateContext
{

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class ChallengeContext : IChallengeContext
{

View File

@ -4,7 +4,7 @@
using System.Security.Claims;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class HttpAuthenticationFeature : IHttpAuthenticationFeature
{

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Security.Claims;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class SignInContext : ISignInContext
{

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using Microsoft.AspNet.HttpFeature.Security;
namespace Microsoft.AspNet.PipelineCore.Security
namespace Microsoft.AspNet.Http.Core.Security
{
public class SignOutContext : ISignOutContext
{

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class ServiceProvidersFeature : IServiceProvidersFeature
{

View File

@ -3,7 +3,7 @@
using Microsoft.AspNet.HttpFeature;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class WebSocketAcceptContext : IWebSocketAcceptContext
{

View File

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.Http.Core.Collections;
using Microsoft.Net.Http.Headers;
using Xunit;

View File

@ -4,7 +4,7 @@
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using Xunit;
namespace Microsoft.AspNet.Http.Extensions

View File

@ -6,7 +6,7 @@ using Xunit;
using Microsoft.AspNet.Builder;
using Microsoft.Framework.DependencyInjection;
using Microsoft.Framework.DependencyInjection.Fallback;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using System.Collections.Generic;
using System.Threading.Tasks;

View File

@ -3,7 +3,7 @@
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using Xunit;
namespace Microsoft.AspNet.Http

View File

@ -5,7 +5,7 @@ using System;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using Shouldly;
using Xunit;

View File

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using Xunit;
namespace Microsoft.AspNet.Builder.Extensions

View File

@ -7,8 +7,7 @@ using System.Linq;
using System.Security.Claims;
using System.Threading;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore;
using Microsoft.AspNet.Http.Core;
using Xunit;
namespace Microsoft.AspNet.Owin

View File

@ -12,7 +12,7 @@ using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.HttpFeature;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
namespace Microsoft.AspNet.Http.Core.Tests
{
public class DefaultHttpContextTests
{

View File

@ -8,7 +8,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.HttpFeature;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
namespace Microsoft.AspNet.Http.Core.Tests
{
public class DefaultHttpRequestTests
{

View File

@ -9,7 +9,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.WebUtilities;
using Xunit;
namespace Microsoft.AspNet.PipelineCore
namespace Microsoft.AspNet.Http.Core
{
public class FormFeatureTests
{

View File

@ -3,10 +3,10 @@
using System;
using System.Collections.Generic;
using Microsoft.AspNet.PipelineCore.Collections;
using Microsoft.AspNet.Http.Core.Collections;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
namespace Microsoft.AspNet.Http.Core.Tests
{
public class HeaderDictionaryTests
{

View File

@ -1,39 +0,0 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Microsoft.AspNet.PipelineCore.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Microsoft.AspNet.PipelineCore.Tests")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("7c564547-b037-4054-a1ec-18e62717be47")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]

View File

@ -6,7 +6,7 @@ using Microsoft.AspNet.HttpFeature;
using Moq;
using Xunit;
namespace Microsoft.AspNet.PipelineCore.Tests
namespace Microsoft.AspNet.Http.Core.Tests
{
public class QueryFeatureTests
{