Switch packages to use generation TFMs

This commit is contained in:
Pranav K 2015-10-22 12:34:25 -07:00
parent f36faf2a72
commit 6c467b0475
34 changed files with 144 additions and 139 deletions

View File

@ -10,11 +10,17 @@
"allowUnsafe": true
},
"frameworks": {
"dnx451": { },
"dnx451": {},
"net451": { },
"dnxcore50": {
"dependencies": {
"System.Security.Claims": "4.0.1-beta-*"
}
},
"dotnet5.4": {
"dependencies": {
"System.Security.Claims": "4.0.1-beta-*"
}
}
}
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -32,7 +32,7 @@ namespace Microsoft.Net.Http.Server
static ComNetOS()
{
#if DNXCORE50
#if DOTNET5_4
// TODO: SkipIOCPCallbackOnSuccess doesn't work on Win7. Need a way to detect Win7 vs 8+.
IsWin8orLater = false;
#else

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -26,7 +26,7 @@ using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Security;
#if !DNXCORE50
#if !DOTNET5_4
using Microsoft.Win32;
#endif
@ -34,7 +34,7 @@ namespace Microsoft.Net.Http.Server
{
internal static class HttpSysSettings
{
#if !DNXCORE50
#if !DOTNET5_4
private const string HttpSysParametersKey = @"System\CurrentControlSet\Services\HTTP\Parameters";
#endif
private const bool EnableNonUtf8Default = true;
@ -61,7 +61,7 @@ namespace Microsoft.Net.Http.Server
}
private static void ReadHttpSysRegistrySettings()
#if DNXCORE50
#if DOTNET5_4
{
}
#else

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -32,7 +32,7 @@ namespace Microsoft.Net.Http.Server
get
{
return Environment.HasShutdownStarted
#if !DNXCORE50
#if !DOTNET5_4
|| AppDomain.CurrentDomain.IsFinalizingForUnload()
#endif
;

View File

@ -33,7 +33,7 @@ namespace Microsoft.Net.Http.Server
{
private const string HTTPAPI = "httpapi.dll";
#if DNXCORE50
#if DOTNET5_4
private const string sspicli_LIB = "sspicli.dll";
private const string api_ms_win_core_processthreads_LIB = "api-ms-win-core-processthreads-l1-1-1.dll";
private const string api_ms_win_core_io_LIB = "api-ms-win-core-io-l1-1-1.dll";
@ -63,21 +63,21 @@ namespace Microsoft.Net.Http.Server
internal const uint ERROR_CONNECTION_INVALID = 1229;
}
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_processthreads_LIB, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
#endif
internal static extern uint GetCurrentThreadId();
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_io_LIB, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
#endif
internal static unsafe extern uint CancelIoEx(SafeHandle handle, SafeNativeOverlapped overlapped);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_kernel32_legacy_LIB, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
@ -102,7 +102,7 @@ namespace Microsoft.Net.Http.Server
[Out] out HeapAllocHandle resultList);
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa366569(v=vs.85).aspx
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_heap_LIB, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
#else
[DllImport(KERNEL32, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
@ -110,7 +110,7 @@ namespace Microsoft.Net.Http.Server
internal static extern IntPtr GetProcessHeap();
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa366701(v=vs.85).aspx
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_heap_LIB, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
#else
[DllImport(KERNEL32, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
@ -122,7 +122,7 @@ namespace Microsoft.Net.Http.Server
internal static class SafeNetHandles
{
#if DNXCORE50
#if DOTNET5_4
[DllImport(sspicli_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(SECUR32, ExactSpelling = true, SetLastError = true)]
@ -130,7 +130,7 @@ namespace Microsoft.Net.Http.Server
internal static extern int FreeContextBuffer(
[In] IntPtr contextBuffer);
#if DNXCORE50
#if DOTNET5_4
[DllImport(sspicli_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(SECUR32, ExactSpelling = true, SetLastError = true)]
@ -147,21 +147,21 @@ namespace Microsoft.Net.Http.Server
[DllImport(HTTPAPI, ExactSpelling = true, CallingConvention = CallingConvention.StdCall, SetLastError = true)]
internal static extern unsafe uint HttpCloseRequestQueue(IntPtr pReqQueueHandle);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_handle_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
#endif
internal static extern bool CloseHandle(IntPtr handle);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_heap_obsolete_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
#endif
internal static extern SafeLocalFree LocalAlloc(int uFlags, UIntPtr sizetdwBytes);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_heap_obsolete_LIB, EntryPoint = "LocalAlloc", SetLastError = true)]
#else
[DllImport(KERNEL32, EntryPoint = "LocalAlloc", SetLastError = true)]
@ -169,21 +169,21 @@ namespace Microsoft.Net.Http.Server
internal static extern SafeLocalFreeChannelBinding LocalAllocChannelBinding(int uFlags, UIntPtr sizetdwBytes);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_heap_obsolete_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
#endif
internal static extern IntPtr LocalFree(IntPtr handle);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_libraryloader_LIB, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
#endif
internal static extern unsafe SafeLoadLibrary LoadLibraryExW([In] string lpwLibFileName, [In] void* hFile, [In] uint dwFlags);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_libraryloader_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]

View File

@ -1,4 +1,4 @@
#if !DNXCORE50 // TODO: Temp copy. Remove once we target net46.
#if !DOTNET5_4 // TODO: Temp copy. Remove once we target net46.
using System;
namespace System.Threading
{

View File

@ -1,4 +1,4 @@
#if !DNXCORE50 // TODO: Temp copy. Remove once we target net46.
#if !DOTNET5_4 // TODO: Temp copy. Remove once we target net46.
using System;
namespace System.Threading
{

View File

@ -1,4 +1,4 @@
#if !DNXCORE50 // TODO: Temp copy. Remove once we target net46.
#if !DOTNET5_4 // TODO: Temp copy. Remove once we target net46.
using System;
namespace System.Threading
{

View File

@ -1,4 +1,4 @@
#if !DNXCORE50 // TODO: Temp copy. Remove once we target net46.
#if !DOTNET5_4 // TODO: Temp copy. Remove once we target net46.
using System;
using System.Runtime.InteropServices;
namespace System.Threading

View File

@ -1,4 +1,4 @@
#if !DNXCORE50 // TODO: Temp copy. Remove once we target net46.
#if !DOTNET5_4 // TODO: Temp copy. Remove once we target net46.
using System;
namespace System.Threading
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -109,7 +109,7 @@ namespace Microsoft.Net.Http.Server
{
return _requestStream.ReadByte();
}
#if !DNXCORE50
#if !DOTNET5_4
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return _requestStream.BeginRead(buffer, offset, count, callback, state);
@ -143,7 +143,7 @@ namespace Microsoft.Net.Http.Server
{
_responseStream.WriteByte(value);
}
#if !DNXCORE50
#if !DOTNET5_4
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
return _responseStream.BeginWrite(buffer, offset, count, callback, state);

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -203,7 +203,7 @@ namespace Microsoft.Net.Http.Server
}
}
#if DNXCORE50
#if DOTNET5_4
public unsafe IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
#else
public override unsafe IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
@ -293,7 +293,7 @@ namespace Microsoft.Net.Http.Server
return asyncResult;
}
#if DNXCORE50
#if DOTNET5_4
public int EndRead(IAsyncResult asyncResult)
#else
public override int EndRead(IAsyncResult asyncResult)
@ -428,7 +428,7 @@ namespace Microsoft.Net.Http.Server
throw new InvalidOperationException(Resources.Exception_ReadOnlyStream);
}
#if DNXCORE50
#if DOTNET5_4
public IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
#else
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
@ -437,7 +437,7 @@ namespace Microsoft.Net.Http.Server
throw new InvalidOperationException(Resources.Exception_ReadOnlyStream);
}
#if DNXCORE50
#if DOTNET5_4
public void EndWrite(IAsyncResult asyncResult)
#else
public override void EndWrite(IAsyncResult asyncResult)

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -70,7 +70,7 @@ namespace Microsoft.Net.Http.Server
// TODO: False triggers more detailed/correct parsing, but it's rather slow.
UseCookedRequestUrl = true; // SettingsSectionInternal.Section.HttpListenerUnescapeRequestUrl;
Utf8Encoding = new UTF8Encoding(false, true);
#if DNXCORE50
#if DOTNET5_4
AnsiEncoding = Utf8Encoding;
#else
AnsiEncoding = Encoding.GetEncoding(0, new EncoderExceptionFallback(), new DecoderExceptionFallback());

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -379,7 +379,7 @@ namespace Microsoft.Net.Http.Server
throw new InvalidOperationException(Resources.Exception_WriteOnlyStream);
}
#if !DNXCORE50
#if !DOTNET5_4
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
{
throw new InvalidOperationException(Resources.Exception_WriteOnlyStream);
@ -468,7 +468,7 @@ namespace Microsoft.Net.Http.Server
}
}
#if DNXCORE50
#if DOTNET5_4
public unsafe IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
#else
public override unsafe IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state)
@ -476,7 +476,7 @@ namespace Microsoft.Net.Http.Server
{
return WriteAsync(buffer, offset, count).ToIAsyncResult(callback, state);
}
#if DNXCORE50
#if DOTNET5_4
public void EndWrite(IAsyncResult asyncResult)
#else
public override void EndWrite(IAsyncResult asyncResult)

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -120,7 +120,7 @@ namespace Microsoft.Net.Http.Server
var boundHandle = responseStream.RequestContext.Server.BoundHandle;
int bufferSize = 1024 * 64; // TODO: Validate buffer size choice.
#if DNXCORE50
#if DOTNET5_4
_fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite, bufferSize /*, useAsync: true*/); // Extremely expensive.
#else
// It's too expensive to validate anything before opening the file. Open the file and then check the lengths.

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -45,7 +45,7 @@ namespace Microsoft.Net.Http.Server
: base(errorCode, message)
{
}
#if DNXCORE50
#if DOTNET5_4
public int ErrorCode
#else
// the base class returns the HResult with this property

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
//
// ==--==
#if DNXCORE50
#if DOTNET5_4
namespace Microsoft.Win32.SafeHandles
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
//
// ==--==
#if DNXCORE50
#if DOTNET5_4
namespace Microsoft.Win32.SafeHandles
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
using System;
using System.ComponentModel;

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
namespace System
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -31,7 +31,7 @@
**
=============================================================================*/
#if DNXCORE50
#if DOTNET5_4
namespace System.Runtime.InteropServices
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
using System.Runtime.InteropServices;
using System.Text;

View File

@ -1,27 +1,26 @@
{
"version": "1.0.0-*",
"description": "Implementation of WebListener, a successor to HttpListener. It is used in the WebListener server package.",
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.Primitives": "1.0.0-*",
"Microsoft.Net.WebSockets": "1.0.0-*"
},
"compilationOptions": {
"allowUnsafe": true
},
"frameworks": {
"net451": { },
"dnx451": { },
"dnxcore50": {
"dependencies": {
"Microsoft.Win32.Primitives": "4.0.1-beta-*",
"System.Diagnostics.Debug": "4.0.11-beta-*",
"System.IO.FileSystem": "4.0.1-beta-*",
"System.Security.Claims": "4.0.1-beta-*",
"System.Security.Cryptography.X509Certificates": "4.0.0-beta-*",
"System.Security.Principal.Windows": "4.0.0-beta-*",
"System.Threading.Overlapped": "4.0.0"
}
}
"version": "1.0.0-*",
"description": "Implementation of WebListener, a successor to HttpListener. It is used in the WebListener server package.",
"dependencies": {
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.Primitives": "1.0.0-*",
"Microsoft.Net.WebSockets": "1.0.0-*"
},
"compilationOptions": {
"allowUnsafe": true
},
"frameworks": {
"net451": {},
"dotnet5.4": {
"dependencies": {
"Microsoft.Win32.Primitives": "4.0.1-beta-*",
"System.Diagnostics.Debug": "4.0.11-beta-*",
"System.IO.FileSystem": "4.0.1-beta-*",
"System.Security.Claims": "4.0.1-beta-*",
"System.Security.Cryptography.X509Certificates": "4.0.0-beta-*",
"System.Security.Principal.Windows": "4.0.0-beta-*",
"System.Threading.Overlapped": "4.0.0-beta-*"
}
}
}
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -31,7 +31,7 @@ namespace Microsoft.Net.WebSockets
{
internal static class UnsafeNativeMethods
{
#if DNXCORE50
#if DOTNET5_4
private const string api_ms_win_core_libraryloader_LIB = "api-ms-win-core-libraryloader-l1-1-0.dll";
#else
private const string KERNEL32 = "kernel32.dll";
@ -40,14 +40,14 @@ namespace Microsoft.Net.WebSockets
internal static class SafeNetHandles
{
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_libraryloader_LIB, ExactSpelling = true, CharSet = CharSet.Unicode, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, CharSet=CharSet.Unicode, SetLastError = true)]
#endif
internal static extern unsafe SafeLoadLibrary LoadLibraryExW([In] string lpwLibFileName, [In] void* hFile, [In] uint dwFlags);
#if DNXCORE50
#if DOTNET5_4
[DllImport(api_ms_win_core_libraryloader_LIB, ExactSpelling = true, SetLastError = true)]
#else
[DllImport(KERNEL32, ExactSpelling = true, SetLastError = true)]
@ -173,7 +173,7 @@ namespace Microsoft.Net.WebSockets
static WebSocketProtocolComponent()
{
#if DNXCORE50
#if DOTNET5_4
DllFileName = Path.Combine(Environment.GetEnvironmentVariable("SYSTEMROOT"), "System32", WEBSOCKET);
#else
DllFileName = Path.Combine(Environment.SystemDirectory, WEBSOCKET);

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -482,7 +482,7 @@ namespace Microsoft.Net.WebSockets
_state = WebSocketState.Aborted;
#if DEBUG && NET45
#if DEBUG && NET451
string stackTrace = new StackTrace().ToString();
if (_closeStack == null)
{
@ -715,7 +715,7 @@ namespace Microsoft.Net.WebSockets
_state = WebSocketState.Closed;
#if DEBUG && NET45
#if DEBUG && NET451
if (_closeStack == null)
{
_closeStack = new StackTrace().ToString();
@ -1103,7 +1103,7 @@ namespace Microsoft.Net.WebSockets
if (thisLockTaken || sessionHandleLockTaken)
{
#if !DNXCORE50
#if !DOTNET5_4
RuntimeHelpers.PrepareConstrainedRegions();
#endif
try
@ -1189,7 +1189,7 @@ namespace Microsoft.Net.WebSockets
Contract.Assert(lockObject != null, "'lockObject' MUST NOT be NULL.");
if (lockTaken)
{
#if !DNXCORE50
#if !DOTNET5_4
RuntimeHelpers.PrepareConstrainedRegions();
#endif
try
@ -2253,7 +2253,7 @@ namespace Microsoft.Net.WebSockets
"'webSocket.m_KeepAliveTracker' MUST NOT be NULL at this point.");
int keepAliveIntervalMilliseconds = (int)_keepAliveInterval.TotalMilliseconds;
Contract.Assert(keepAliveIntervalMilliseconds > 0, "'keepAliveIntervalMilliseconds' MUST be POSITIVE.");
#if DNXCORE50
#if DOTNET5_4
_keepAliveTimer = new Timer(_keepAliveTimerElapsedCallback, webSocket, keepAliveIntervalMilliseconds, Timeout.Infinite);
#else
if (ExecutionContext.IsFlowSuppressed())

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -28,7 +28,7 @@ using System.Runtime.InteropServices;
namespace Microsoft.Net.WebSockets
{
#if !DNXCORE50
#if !DOTNET5_4
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2237:MarkISerializableTypesWithSerializable")]
#endif
internal sealed class WebSocketException : Win32Exception

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
//
// ==--==
#if DNXCORE50
#if DOTNET5_4
namespace Microsoft.Win32.SafeHandles
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -15,7 +15,7 @@
// See the Apache 2 License for the specific language governing
// permissions and limitations under the License.
#if DNXCORE50
#if DOTNET5_4
using System;
using System.Collections.Generic;

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
using System.Runtime.InteropServices;
using System.Text;

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
namespace System
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -31,7 +31,7 @@
**
=============================================================================*/
#if DNXCORE50
#if DOTNET5_4
namespace System.Runtime.InteropServices
{

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -21,7 +21,7 @@
// </copyright>
//------------------------------------------------------------------------------
#if DNXCORE50
#if DOTNET5_4
using System.Runtime.InteropServices;
using System.Text;

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc.
// Copyright (c) Microsoft Open Technologies, Inc.
// All Rights Reserved
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -15,7 +15,7 @@
// See the Apache 2 License for the specific language governing
// permissions and limitations under the License.
#if DNXCORE50
#if DOTNET5_4
using System;
using System.Collections.Generic;

View File

@ -1,30 +1,30 @@
{
"version": "1.0.0-*",
"description": "Implementation of WebSocket abstract base class. Used by WebListener.",
"dependencies": {
},
"compilationOptions": { "allowUnsafe": true },
"frameworks": {
"net451": { },
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.Collections": "4.0.11-beta-*",
"System.Diagnostics.Contracts": "4.0.1-beta-*",
"System.Diagnostics.Tools": "4.0.1-beta-*",
"System.IO": "4.0.11-beta-*",
"System.Linq": "4.0.1-beta-*",
"System.Net.Primitives": "4.0.11-beta-*",
"System.Net.WebSockets": "4.0.0-beta-*",
"System.Resources.ResourceManager": "4.0.1-beta-*",
"System.Runtime.Extensions": "4.0.11-beta-*",
"System.Security.Cryptography.Algorithms": "4.0.0-beta-*",
"System.Text.Encoding.Extensions": "4.0.11-beta-*",
"System.Threading": "4.0.11-beta-*",
"System.Threading.Tasks": "4.0.11-beta-*",
"System.Threading.Timer": "4.0.1-beta-*",
"System.Threading.ThreadPool": "4.0.10-beta-*"
}
}
"version": "1.0.0-*",
"description": "Implementation of WebSocket abstract base class. Used by WebListener.",
"dependencies": {},
"compilationOptions": {
"allowUnsafe": true
},
"frameworks": {
"net451": {},
"dotnet5.4": {
"dependencies": {
"System.Collections": "4.0.11-beta-*",
"System.Diagnostics.Contracts": "4.0.1-beta-*",
"System.Diagnostics.Tools": "4.0.1-beta-*",
"System.IO": "4.0.11-beta-*",
"System.Linq": "4.0.1-beta-*",
"System.Net.Primitives": "4.0.11-beta-*",
"System.Net.WebSockets": "4.0.0-beta-*",
"System.Resources.ResourceManager": "4.0.1-beta-*",
"System.Runtime.Extensions": "4.0.11-beta-*",
"System.Security.Cryptography.Algorithms": "4.0.0-beta-*",
"System.Text.Encoding.Extensions": "4.0.11-beta-*",
"System.Threading": "4.0.11-beta-*",
"System.Threading.Tasks": "4.0.11-beta-*",
"System.Threading.Timer": "4.0.1-beta-*",
"System.Threading.ThreadPool": "4.0.10-beta-*"
}
}
}
}
}