#46 - Rename Microsoft.Net.Server to Microsoft.Net.Http.Server.

This commit is contained in:
Chris Ross 2014-08-06 15:49:53 -07:00
parent 5aa8f3b459
commit 1416cc4d69
95 changed files with 97 additions and 92 deletions

View File

@ -1,7 +1,7 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 14
VisualStudioVersion = 14.0.21730.1 VisualStudioVersion = 14.0.21916.0
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestClient", "samples\TestClient\TestClient.csproj", "{8B828433-B333-4C19-96AE-00BFFF9D8841}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestClient", "samples\TestClient\TestClient.csproj", "{8B828433-B333-4C19-96AE-00BFFF9D8841}"
EndProject EndProject
@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{E183C826-1
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{3A1E31E3-2794-4CA3-B8E2-253E96BDE514}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{3A1E31E3-2794-4CA3-B8E2-253E96BDE514}"
EndProject EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Net.Server", "src\Microsoft.Net.Server\Microsoft.Net.Server.kproj", "{3F5212AA-E287-49DD-8CEC-44BF0A2AC9A1}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Net.Http.Server", "src\Microsoft.Net.Http.Server\Microsoft.Net.Http.Server.kproj", "{3F5212AA-E287-49DD-8CEC-44BF0A2AC9A1}"
EndProject EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "HelloWorld", "samples\HelloWorld\HelloWorld.kproj", "{6DAF3E6B-8E1B-4E6E-B9FE-7B1E5FDB7DB4}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "HelloWorld", "samples\HelloWorld\HelloWorld.kproj", "{6DAF3E6B-8E1B-4E6E-B9FE-7B1E5FDB7DB4}"
EndProject EndProject
@ -25,7 +25,12 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.Server.Web
EndProject EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.Server.WebListener", "src\Microsoft.AspNet.Server.WebListener\Microsoft.AspNet.Server.WebListener.kproj", "{B9F45F9D-D206-47F0-8E5F-54CE2F0BDF92}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNet.Server.WebListener", "src\Microsoft.AspNet.Server.WebListener\Microsoft.AspNet.Server.WebListener.kproj", "{B9F45F9D-D206-47F0-8E5F-54CE2F0BDF92}"
EndProject EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Net.Server.FunctionalTests", "test\Microsoft.Net.Server.FunctionalTests\Microsoft.Net.Server.FunctionalTests.kproj", "{DCB6E0B1-223D-44E6-8696-4767E5B6E6A1}" Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Net.Http.Server.FunctionalTests", "test\Microsoft.Net.Http.Server.FunctionalTests\Microsoft.Net.Http.Server.FunctionalTests.kproj", "{DCB6E0B1-223D-44E6-8696-4767E5B6E6A1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5E9B546C-17AC-4BDF-BCB3-5955D4755ED8}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -20,7 +20,7 @@ using System.Net.WebSockets;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace HelloWorld namespace HelloWorld
{ {

View File

@ -1,6 +1,6 @@
{ {
"dependencies": { "dependencies": {
"Microsoft.Net.Server" : "" "Microsoft.Net.Http.Server" : ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "net45": { },

View File

@ -23,7 +23,7 @@ using Microsoft.AspNet;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Server.WebListener; using Microsoft.AspNet.Server.WebListener;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace SelfHostServer namespace SelfHostServer
{ {

View File

@ -3,7 +3,7 @@
"Microsoft.AspNet.Hosting": "1.0.0-*", "Microsoft.AspNet.Hosting": "1.0.0-*",
"Microsoft.AspNet.Http": "1.0.0-*", "Microsoft.AspNet.Http": "1.0.0-*",
"Microsoft.AspNet.Server.WebListener": "", "Microsoft.AspNet.Server.WebListener": "",
"Microsoft.Net.Server": "" "Microsoft.Net.Http.Server": ""
}, },
"commands": { "web": "Microsoft.AspNet.Hosting --server=Microsoft.AspNet.Server.WebListener --server.urls=http://localhost:8080" }, "commands": { "web": "Microsoft.AspNet.Hosting --server=Microsoft.AspNet.Server.WebListener --server.urls=http://localhost:8080" },
"frameworks": { "frameworks": {

View File

@ -27,7 +27,7 @@ using System.Linq;
using System.Security.Claims; using System.Security.Claims;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.HttpFeature.Security; using Microsoft.AspNet.HttpFeature.Security;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener
{ {

View File

@ -28,7 +28,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.FeatureModel; using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.HttpFeature; using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.HttpFeature.Security; using Microsoft.AspNet.HttpFeature.Security;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
using Microsoft.Net.WebSockets; using Microsoft.Net.WebSockets;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener

View File

@ -20,7 +20,7 @@ using System.Diagnostics.Contracts;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Logging; using Microsoft.Framework.Logging;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener
{ {
@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Server.WebListener
{ {
private static readonly int DefaultMaxAccepts = 5 * Environment.ProcessorCount; private static readonly int DefaultMaxAccepts = 5 * Environment.ProcessorCount;
private readonly Microsoft.Net.Server.WebListener _listener; private readonly Microsoft.Net.Http.Server.WebListener _listener;
private readonly ILogger _logger; private readonly ILogger _logger;
private AppFunc _appFunc; private AppFunc _appFunc;
@ -45,7 +45,7 @@ namespace Microsoft.AspNet.Server.WebListener
// TODO: private IDictionary<string, object> _capabilities; // TODO: private IDictionary<string, object> _capabilities;
internal MessagePump(Microsoft.Net.Server.WebListener listener, ILoggerFactory loggerFactory) internal MessagePump(Microsoft.Net.Http.Server.WebListener listener, ILoggerFactory loggerFactory)
{ {
Contract.Assert(listener != null); Contract.Assert(listener != null);
_listener = listener; _listener = listener;
@ -56,7 +56,7 @@ namespace Microsoft.AspNet.Server.WebListener
_shutdownSignal = new ManualResetEvent(false); _shutdownSignal = new ManualResetEvent(false);
} }
internal Microsoft.Net.Server.WebListener Listener internal Microsoft.Net.Http.Server.WebListener Listener
{ {
get { return _listener; } get { return _listener; }
} }

View File

@ -43,7 +43,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Hosting.Server; using Microsoft.AspNet.Hosting.Server;
using Microsoft.Framework.ConfigurationModel; using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.Logging; using Microsoft.Framework.Logging;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener
{ {
@ -68,7 +68,7 @@ namespace Microsoft.AspNet.Server.WebListener
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Disposed by caller")] [SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Disposed by caller")]
public IServerInformation Initialize(IConfiguration configuration) public IServerInformation Initialize(IConfiguration configuration)
{ {
Microsoft.Net.Server.WebListener listener = new Microsoft.Net.Server.WebListener(); Microsoft.Net.Http.Server.WebListener listener = new Microsoft.Net.Http.Server.WebListener();
ParseAddresses(configuration, listener); ParseAddresses(configuration, listener);
return new ServerInformation(new MessagePump(listener, _loggerFactory)); return new ServerInformation(new MessagePump(listener, _loggerFactory));
} }
@ -101,7 +101,7 @@ namespace Microsoft.AspNet.Server.WebListener
return serverInfo.MessagePump; return serverInfo.MessagePump;
} }
private void ParseAddresses(IConfiguration config, Microsoft.Net.Server.WebListener listener) private void ParseAddresses(IConfiguration config, Microsoft.Net.Http.Server.WebListener listener)
{ {
// TODO: Key format? // TODO: Key format?
string urls; string urls;

View File

@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Server.WebListener
get { return GetType().GetTypeInfo().Assembly.GetName().Name; } get { return GetType().GetTypeInfo().Assembly.GetName().Name; }
} }
public Microsoft.Net.Server.WebListener Listener public Microsoft.Net.Http.Server.WebListener Listener
{ {
get { return _messagePump.Listener; } get { return _messagePump.Listener; }
} }

View File

@ -6,7 +6,7 @@
"Microsoft.AspNet.HttpFeature": "1.0.0-*", "Microsoft.AspNet.HttpFeature": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel": "1.0.0-*", "Microsoft.Framework.ConfigurationModel": "1.0.0-*",
"Microsoft.Framework.Logging": "1.0.0-*", "Microsoft.Framework.Logging": "1.0.0-*",
"Microsoft.Net.Server" : "", "Microsoft.Net.Http.Server" : "",
"Microsoft.Net.WebSocketAbstractions": "1.0.0-*" "Microsoft.Net.WebSocketAbstractions": "1.0.0-*"
}, },
"compilationOptions": { "compilationOptions": {

View File

@ -27,7 +27,7 @@ using System.Diagnostics.Contracts;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal unsafe class AsyncAcceptContext : IAsyncResult, IDisposable internal unsafe class AsyncAcceptContext : IAsyncResult, IDisposable
{ {

View File

@ -29,7 +29,7 @@ using System.Runtime.InteropServices;
using System.Security.Claims; using System.Security.Claims;
using System.Security.Principal; using System.Security.Principal;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// See the native HTTP_SERVER_AUTHENTICATION_INFO structure documentation for additional information. // See the native HTTP_SERVER_AUTHENTICATION_INFO structure documentation for additional information.
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa364638(v=vs.85).aspx // http://msdn.microsoft.com/en-us/library/windows/desktop/aa364638(v=vs.85).aspx

View File

@ -17,7 +17,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
[Flags] [Flags]
public enum AuthenticationTypes public enum AuthenticationTypes

View File

@ -23,7 +23,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class Constants internal static class Constants
{ {

View File

@ -24,7 +24,7 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class Helpers internal static class Helpers
{ {

View File

@ -26,7 +26,7 @@ using System.Diagnostics;
using System.Globalization; using System.Globalization;
using Microsoft.Framework.Logging; using Microsoft.Framework.Logging;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class LogHelper internal static class LogHelper
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
/// <devdoc> /// <devdoc>
/// <para> /// <para>

View File

@ -23,7 +23,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class ComNetOS internal static class ComNetOS
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum ContextAttribute internal enum ContextAttribute
{ {

View File

@ -23,7 +23,7 @@
using Microsoft.Win32.SafeHandles; using Microsoft.Win32.SafeHandles;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// This class is a wrapper for Http.sys V2 request queue handle. // This class is a wrapper for Http.sys V2 request queue handle.
internal sealed class HttpRequestQueueV2Handle : SafeHandleZeroOrMinusOneIsInvalid internal sealed class HttpRequestQueueV2Handle : SafeHandleZeroOrMinusOneIsInvalid

View File

@ -25,7 +25,7 @@ using System;
using System.Threading; using System.Threading;
using Microsoft.Win32.SafeHandles; using Microsoft.Win32.SafeHandles;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal sealed class HttpServerSessionHandle : CriticalHandleZeroOrMinusOneIsInvalid internal sealed class HttpServerSessionHandle : CriticalHandleZeroOrMinusOneIsInvalid
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum HttpSysRequestHeader internal enum HttpSysRequestHeader
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum HttpSysResponseHeader internal enum HttpSysResponseHeader
{ {

View File

@ -30,7 +30,7 @@ using System.Security;
using Microsoft.Win32; using Microsoft.Win32;
#endif #endif
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class HttpSysSettings internal static class HttpSysSettings
{ {

View File

@ -23,7 +23,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class IntPtrHelper internal static class IntPtrHelper
{ {

View File

@ -23,7 +23,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class NclUtilities internal static class NclUtilities
{ {

View File

@ -24,7 +24,7 @@
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
[StructLayout(LayoutKind.Sequential, Pack = 1)] [StructLayout(LayoutKind.Sequential, Pack = 1)]
internal struct SSPIHandle internal struct SSPIHandle

View File

@ -23,7 +23,7 @@
using Microsoft.Win32.SafeHandles; using Microsoft.Win32.SafeHandles;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal sealed class SafeLoadLibrary : SafeHandleZeroOrMinusOneIsInvalid internal sealed class SafeLoadLibrary : SafeHandleZeroOrMinusOneIsInvalid
{ {

View File

@ -24,7 +24,7 @@
using System; using System;
using Microsoft.Win32.SafeHandles; using Microsoft.Win32.SafeHandles;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal sealed class SafeLocalFree : SafeHandleZeroOrMinusOneIsInvalid internal sealed class SafeLocalFree : SafeHandleZeroOrMinusOneIsInvalid
{ {

View File

@ -24,7 +24,7 @@
using System; using System;
using System.Security.Authentication.ExtendedProtection; using System.Security.Authentication.ExtendedProtection;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal class SafeLocalFreeChannelBinding : ChannelBinding internal class SafeLocalFreeChannelBinding : ChannelBinding
{ {

View File

@ -24,7 +24,7 @@
using System; using System;
using Microsoft.Win32.SafeHandles; using Microsoft.Win32.SafeHandles;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal sealed class SafeLocalMemHandle : SafeHandleZeroOrMinusOneIsInvalid internal sealed class SafeLocalMemHandle : SafeHandleZeroOrMinusOneIsInvalid
{ {

View File

@ -25,7 +25,7 @@ using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal class SafeNativeOverlapped : SafeHandle internal class SafeNativeOverlapped : SafeHandle
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
using System; using System;
using System.Globalization; using System.Globalization;

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum SecurityStatus internal enum SecurityStatus
{ {

View File

@ -28,7 +28,7 @@ using System.Globalization;
using System.Net; using System.Net;
using System.Text; using System.Text;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// a little perf app measured these times when comparing the internal // a little perf app measured these times when comparing the internal
// buffer implemented as a managed byte[] or unmanaged memory IntPtr // buffer implemented as a managed byte[] or unmanaged memory IntPtr

View File

@ -26,7 +26,7 @@ using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class UnsafeNclNativeMethods internal static class UnsafeNclNativeMethods
{ {
@ -80,7 +80,7 @@ namespace Microsoft.Net.Server
[DllImport(HTTPAPI, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, SetLastError = true)] [DllImport(HTTPAPI, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode, SetLastError = true)]
internal static extern unsafe uint HttpCreateRequestQueue(HttpApi.HTTPAPI_VERSION version, string pName, internal static extern unsafe uint HttpCreateRequestQueue(HttpApi.HTTPAPI_VERSION version, string pName,
Microsoft.Net.Server.UnsafeNclNativeMethods.SECURITY_ATTRIBUTES pSecurityAttributes, uint flags, out HttpRequestQueueV2Handle pReqQueueHandle); Microsoft.Net.Http.Server.UnsafeNclNativeMethods.SECURITY_ATTRIBUTES pSecurityAttributes, uint flags, out HttpRequestQueueV2Handle pReqQueueHandle);
[DllImport(HTTPAPI, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)] [DllImport(HTTPAPI, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
internal static extern unsafe uint HttpCloseRequestQueue(IntPtr pReqQueueHandle); internal static extern unsafe uint HttpCloseRequestQueue(IntPtr pReqQueueHandle);

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum BoundaryType internal enum BoundaryType
{ {

View File

@ -31,7 +31,7 @@ using System.Security.Cryptography.X509Certificates;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// This class is used to load the client certificate on-demand. Because client certs are optional, all // This class is used to load the client certificate on-demand. Because client certs are optional, all
// failures are handled internally and reported via ClientCertException or ClientCertError. // failures are handled internally and reported via ClientCertException or ClientCertError.

View File

@ -5,7 +5,7 @@ using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class HeaderCollection : IDictionary<string, string[]> public class HeaderCollection : IDictionary<string, string[]>
{ {

View File

@ -26,7 +26,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// we use this static class as a helper class to encode/decode HTTP headers. // we use this static class as a helper class to encode/decode HTTP headers.
// what we need is a 1-1 correspondence between a char in the range U+0000-U+00FF // what we need is a 1-1 correspondence between a char in the range U+0000-U+00FF

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class HeaderParser internal static class HeaderParser
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class HttpKnownHeaderNames internal static class HttpKnownHeaderNames
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class HttpReasonPhrase internal static class HttpReasonPhrase
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// Redirect Status code numbers that need to be defined. // Redirect Status code numbers that need to be defined.

View File

@ -26,7 +26,7 @@ using System.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal unsafe class NativeRequestContext : IDisposable internal unsafe class NativeRequestContext : IDisposable
{ {

View File

@ -26,7 +26,7 @@ using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// A duplex wrapper around RequestStream and ResponseStream. // A duplex wrapper around RequestStream and ResponseStream.
// TODO: Consider merging RequestStream and ResponseStream instead. // TODO: Consider merging RequestStream and ResponseStream instead.

View File

@ -35,7 +35,7 @@ using System.Security.Principal;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public sealed class Request public sealed class Request
{ {

View File

@ -33,7 +33,7 @@ using System.Threading.Tasks;
using Microsoft.Framework.Logging; using Microsoft.Framework.Logging;
using Microsoft.Net.WebSockets; using Microsoft.Net.WebSockets;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public sealed class RequestContext : IDisposable public sealed class RequestContext : IDisposable
{ {

View File

@ -30,7 +30,7 @@ using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
[GeneratedCode("TextTemplatingFileGenerator", "")] [GeneratedCode("TextTemplatingFileGenerator", "")]
internal partial class RequestHeaders internal partial class RequestHeaders

View File

@ -69,7 +69,7 @@ using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
[GeneratedCode("TextTemplatingFileGenerator", "")] [GeneratedCode("TextTemplatingFileGenerator", "")]
internal partial class RequestHeaders internal partial class RequestHeaders

View File

@ -40,7 +40,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal partial class RequestHeaders : IDictionary<string, string[]> internal partial class RequestHeaders : IDictionary<string, string[]>
{ {

View File

@ -28,7 +28,7 @@ using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal class RequestStream : Stream internal class RequestStream : Stream
{ {

View File

@ -27,7 +27,7 @@ using System.Diagnostics;
using System.Globalization; using System.Globalization;
using System.Text; using System.Text;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// We don't use the cooked URL because http.sys unescapes all percent-encoded values. However, // We don't use the cooked URL because http.sys unescapes all percent-encoded values. However,
// we also can't just use the raw Uri, since http.sys supports not only Utf-8, but also ANSI/DBCS and // we also can't just use the raw Uri, since http.sys supports not only Utf-8, but also ANSI/DBCS and

View File

@ -31,7 +31,7 @@ using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public sealed unsafe class Response public sealed unsafe class Response
{ {

View File

@ -29,7 +29,7 @@ using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal class ResponseStream : Stream internal class ResponseStream : Stream
{ {

View File

@ -28,7 +28,7 @@ using System.Runtime.InteropServices;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal unsafe class ResponseStreamAsyncResult : IAsyncResult, IDisposable internal unsafe class ResponseStreamAsyncResult : IAsyncResult, IDisposable
{ {

View File

@ -21,7 +21,7 @@
// </copyright> // </copyright>
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal enum SslStatus : byte internal enum SslStatus : byte
{ {

View File

@ -25,7 +25,7 @@
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Microsoft.Net.Server { namespace Microsoft.Net.Http.Server {
using System; using System;
@ -56,7 +56,7 @@ namespace Microsoft.Net.Server {
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Net.Server.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Net.Http.Server.Resources", System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(Resources)).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;

View File

@ -25,7 +25,7 @@ using System;
using System.Diagnostics; using System.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
// See the native HTTP_TIMEOUT_LIMIT_INFO structure documentation for additional information. // See the native HTTP_TIMEOUT_LIMIT_INFO structure documentation for additional information.
// http://msdn.microsoft.com/en-us/library/aa364661.aspx // http://msdn.microsoft.com/en-us/library/aa364661.aspx

View File

@ -24,7 +24,7 @@
using System; using System;
using System.Globalization; using System.Globalization;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class UrlPrefix public class UrlPrefix
{ {

View File

@ -24,7 +24,7 @@
using System; using System;
using System.Globalization; using System.Globalization;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class ValidationHelper internal static class ValidationHelper
{ {

View File

@ -34,7 +34,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Framework.Logging; using Microsoft.Framework.Logging;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
using AppFunc = Func<object, Task>; using AppFunc = Func<object, Task>;

View File

@ -26,7 +26,7 @@ using System.ComponentModel;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
[SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")] [SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
public class WebListenerException : Win32Exception public class WebListenerException : Win32Exception

View File

@ -22,7 +22,7 @@ using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.FeatureModel; using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.PipelineCore; using Microsoft.AspNet.PipelineCore;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
using Xunit; using Xunit;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener

View File

@ -23,7 +23,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.FeatureModel; using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.HttpFeature; using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore; using Microsoft.AspNet.PipelineCore;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
using Xunit; using Xunit;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener

View File

@ -27,7 +27,7 @@ using System.Threading.Tasks;
using Microsoft.AspNet.FeatureModel; using Microsoft.AspNet.FeatureModel;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.PipelineCore; using Microsoft.AspNet.PipelineCore;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
using Xunit; using Xunit;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener

View File

@ -17,7 +17,7 @@
using System; using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.Net.Server; using Microsoft.Net.Http.Server;
namespace Microsoft.AspNet.Server.WebListener namespace Microsoft.AspNet.Server.WebListener
{ {

View File

@ -11,7 +11,7 @@
"Microsoft.AspNet.Server.WebListener" : "", "Microsoft.AspNet.Server.WebListener" : "",
"Microsoft.Framework.ConfigurationModel": "1.0.0-*", "Microsoft.Framework.ConfigurationModel": "1.0.0-*",
"Microsoft.Framework.Logging": "1.0.0-*", "Microsoft.Framework.Logging": "1.0.0-*",
"Microsoft.Net.Server" : "", "Microsoft.Net.Http.Server" : "",
"Xunit.KRunner": "1.0.0-*" "Xunit.KRunner": "1.0.0-*"
}, },
"frameworks": { "frameworks": {

View File

@ -6,7 +6,7 @@ using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class AuthenticationTests public class AuthenticationTests
{ {

View File

@ -7,7 +7,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class HttpsTests public class HttpsTests
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class OpaqueUpgradeTests public class OpaqueUpgradeTests
{ {

View File

@ -10,7 +10,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class RequestBodyTests public class RequestBodyTests
{ {

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class RequestHeaderTests public class RequestHeaderTests
{ {

View File

@ -7,7 +7,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class RequestTests public class RequestTests
{ {

View File

@ -9,7 +9,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class ResponseBodyTests public class ResponseBodyTests
{ {

View File

@ -7,7 +7,7 @@ using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class ResponseHeaderTests public class ResponseHeaderTests
{ {

View File

@ -9,7 +9,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class ResponseSendFileTests public class ResponseSendFileTests
{ {

View File

@ -6,7 +6,7 @@ using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class ResponseTests public class ResponseTests
{ {

View File

@ -10,7 +10,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class ServerTests public class ServerTests
{ {

View File

@ -2,7 +2,7 @@
using System; using System;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
internal static class Utilities internal static class Utilities
{ {

View File

@ -8,7 +8,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Xunit; using Xunit;
namespace Microsoft.Net.Server namespace Microsoft.Net.Http.Server
{ {
public class WebSocketTests public class WebSocketTests
{ {

View File

@ -3,7 +3,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"dependencies": { "dependencies": {
"Microsoft.Net.Server" : "", "Microsoft.Net.Http.Server" : "",
"Xunit.KRunner": "1.0.0-*" "Xunit.KRunner": "1.0.0-*"
}, },
"frameworks": { "frameworks": {