Exemple #1
0
        public static string Get(string key, string version = "default")
        {
            var servico = new ConfigServiceSoapClient();
            var res     = servico.BuscarConfiguracao(key, version);

            servico.Close();

            return(res.ConfigValue);
        }
Exemple #2
0
 public static string Get(string key, string version = "default")
 {
     try
     {
         var servico = new ConfigServiceSoapClient();
         var res     = servico.BuscarConfiguracao(key, version);
         servico.Close();
         return(res.ConfigValue);
     }
     catch (Exception ex)
     {
         return(ex.InnerException.ToString());
     }
 }