diff --git a/src/Microsoft.Net.Server/Microsoft.Net.Server.kproj b/src/Microsoft.Net.Server/Microsoft.Net.Server.kproj
index c1142c94f9..7c64fe5b48 100644
--- a/src/Microsoft.Net.Server/Microsoft.Net.Server.kproj
+++ b/src/Microsoft.Net.Server/Microsoft.Net.Server.kproj
@@ -29,7 +29,6 @@
-
@@ -85,5 +84,4 @@
-
-
+
\ No newline at end of file
diff --git a/src/Microsoft.Net.Server/NativeInterop/SafeLocalFreeChannelBinding.cs b/src/Microsoft.Net.Server/NativeInterop/SafeLocalFreeChannelBinding.cs
index eab0a03105..be210bbdf1 100644
--- a/src/Microsoft.Net.Server/NativeInterop/SafeLocalFreeChannelBinding.cs
+++ b/src/Microsoft.Net.Server/NativeInterop/SafeLocalFreeChannelBinding.cs
@@ -55,5 +55,13 @@ namespace Microsoft.Net.Server
{
return UnsafeNclNativeMethods.SafeNetHandles.LocalFree(handle) == IntPtr.Zero;
}
+
+ public override bool IsInvalid
+ {
+ get
+ {
+ return handle == IntPtr.Zero || handle.ToInt32() == -1;
+ }
+ }
}
}
diff --git a/src/Microsoft.Net.Server/fx/System/Security/Authentication/ExtendedProtection/ChannelBinding.cs b/src/Microsoft.Net.Server/fx/System/Security/Authentication/ExtendedProtection/ChannelBinding.cs
deleted file mode 100644
index cefd0e12f3..0000000000
--- a/src/Microsoft.Net.Server/fx/System/Security/Authentication/ExtendedProtection/ChannelBinding.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) Microsoft Open Technologies, Inc.
-// All Rights Reserved
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
-// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
-// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF
-// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR
-// NON-INFRINGEMENT.
-// See the Apache 2 License for the specific language governing
-// permissions and limitations under the License.
-
-//------------------------------------------------------------------------------
-//
-// Copyright (c) Microsoft Corporation. All rights reserved.
-//
-//------------------------------------------------------------------------------
-
-using System.Runtime.InteropServices;
-using Microsoft.Win32.SafeHandles;
-
-#if !NET45
-
-namespace System.Security.Authentication.ExtendedProtection
-{
- internal abstract class ChannelBinding : SafeHandleZeroOrMinusOneIsInvalid
- {
- protected ChannelBinding()
- : base(true)
- {
- }
-
- protected ChannelBinding(bool ownsHandle)
- : base(ownsHandle)
- {
- }
-
- public abstract int Size
- {
- get;
- }
- }
-}
-
-#endif
\ No newline at end of file