private static System.ServiceModel.Channels.Binding Create(bool sslEnabled) { if (sslEnabled) { var httpsTransport = new TransportSSLBindingWithAnonomousAuthenticationAndWsdlGenereration(); return(CreateBinding(httpsTransport)); } else { var httptransport = new HttpTransportBindingElement(); httptransport.AuthenticationScheme = AuthenticationSchemes.Anonymous; httptransport.ProxyAuthenticationScheme = AuthenticationSchemes.Anonymous; return(CreateBinding(httptransport)); } }
private static System.ServiceModel.Channels.Binding Create(bool sslEnabled) { if (sslEnabled) { var httpsTransport = new TransportSSLBindingWithAnonomousAuthenticationAndWsdlGenereration(); return CreateBinding(httpsTransport); } else { var httptransport = new HttpTransportBindingElement(); httptransport.AuthenticationScheme = AuthenticationSchemes.Anonymous; httptransport.ProxyAuthenticationScheme = AuthenticationSchemes.Anonymous; return CreateBinding(httptransport); } }