Beispiel #1
0
        public bool setUpConnectionData(Dictionary <string, object> dataConnection)
        {
            if (dataConnection.Count > 0)
            {
                string          urlAccess = dataConnection[UtilsApiTms.KEY_URL].ToString();
                TIPO_RUTA_API   path      = dataConnection[UtilsApiTms.KEY_PATH].ToString().DehumanizeTo <TIPO_RUTA_API>();
                TIPO_METODO_API method    = dataConnection[UtilsApiTms.KEY_METHOD].ToString().DehumanizeTo <TIPO_METODO_API>();
                string          database  = dataConnection[UtilsApiTms.KEY_DATABASE].ToString();
                string          username  = dataConnection[UtilsApiTms.KEY_USERNAME].ToString();
                string          password  = dataConnection[UtilsApiTms.KEY_PASSWORD].ToString();

                applyUrlAccess(urlAccess);
                applyPath(path);
                applyMethod(method);
                applyAccessCredentials(database, username, password);
            }
            return(dataConnection.Count > 0);
        }
Beispiel #2
0
 private void applyPath(TIPO_RUTA_API path) => clientXmlRpc.Path = path.Humanize();