/// <summary> /// Construtor padrão. /// </summary> /// <param name="url">Url do serviço.</param> /// <param name="sendTimeout">Timeout de envio.</param> public ServiceProxy(string url, TimeSpan sendTimeout) : this(url, sendTimeout, CommunicationHelpers.CreateBinding(ServiceProxy <T> .DetermineSecurityMode(url), false)) { }
/// <summary> /// Determina o modo de segurança. /// </summary> /// <param name="url"></param> /// <returns></returns> private static SecurityMode DetermineSecurityMode(string url) { return(ServiceProxy <T> .DetermineSecurityMode(new Uri(url))); }