Skip to content

Instantly share code, notes, and snippets.

View msinnema's full-sized avatar

Marco Sinnema msinnema

  • Q-Free Netherlands B.V.
  • The Netherlands
View GitHub Profile
// SecurityMode.Transport enables HTTPS
var binding = new WSHttpBinding(SecurityMode.Transport)
{
Security =
{
Mode = SecurityMode.Transport,
Message = {ClientCredentialType = MessageCredentialType.None},
Transport =
{
ClientCredentialType = HttpClientCredentialType.InheritedFromHost,