private static HttpsTransportBindingElement CreateHttpsFromHttp(HttpTransportBindingElement http) { if (http == null) { return(new HttpsTransportBindingElement()); } return(HttpsTransportBindingElement.CreateFromHttpBindingElement(http)); }