Ejemplo n.º 1
0
 /// <summary>
 /// Super simple
 /// </summary>
 public string[] GetVariableNames()
 {
     try
     {
         using (var client = new Service.DebugInterface())
         {
             client.Url = Url;
             return(client.GetVariableNames());
         }
     }
     catch (Exception)
     {
         return(noValuesArray);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Super smple
 /// </summary>
 public string GetVariableValue(string name)
 {
     try
     {
         using (var client = new Service.DebugInterface())
         {
             client.Url = Url;
             return(client.GetVariableValue(name));
         }
     }
     catch (Exception)
     {
         return(string.Empty);
     }
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Super simple
        /// </summary>
        public bool SetVariableValue(string name, string json)
        {
            try
            {
                using (var client = new Service.DebugInterface())
                {
                    client.Url = Url;

                    bool result, resultSpecified;

                    client.SetVariableValue(name, json, out result, out resultSpecified);

                    return(resultSpecified ? result : false);
                }
            }
            catch (Exception)
            {
                return(false);
            }
        }