-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...System.Private.ServiceModel/tools/IISHostedWcfService/App_code/CoreWCF/NetHttpsBinding.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
#if NET | ||
|
||
using CoreWCF; | ||
using CoreWCF.Channels; | ||
|
||
namespace WcfService | ||
{ | ||
//public enum BasicHttpsSecurityMode | ||
//{ | ||
// // | ||
// // Summary: | ||
// // The Transport security mode. | ||
// Transport, | ||
// // | ||
// // Summary: | ||
// // The TransportWithMessageCredential security mode. | ||
// TransportWithMessageCredential | ||
//} | ||
|
||
// Cast BasicHttpsSecurityMode (WCF) to BasicHttpSecurityMode (CoreWCF) | ||
//internal enum BasicHttpsSecurityMode | ||
//{ | ||
// None, | ||
// Transport, | ||
// Message, | ||
// TransportWithMessageCredential, | ||
// TransportCredentialOnly | ||
//} | ||
|
||
internal class NetHttpsBinding : NetHttpBinding | ||
{ | ||
public NetHttpsBinding() : base((BasicHttpSecurityMode)BasicHttpsSecurityMode.Transport) | ||
{ | ||
} | ||
|
||
public NetHttpsBinding(BasicHttpsSecurityMode securityMode) : base((BasicHttpSecurityMode)securityMode) | ||
{ | ||
} | ||
} | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters