Example #1
0
 /// <summary>
 /// Sets data for a single jet path
 /// </summary>
 /// <param name="path">Jet path for the data (e.g. "6002/01)"</param>
 /// <param name="value">The new value for the path</param>
 private void SetData(string path, JValue value)
 {
     try
     {
         JObject request = _peer.Set(path.ToString(), value, OnSet, this._timeoutMs);
     }
     catch (Exception e)
     {
         throw new Exception(e.ToString());
     }
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="path"></param>
 /// <param name="value"></param>
 protected virtual void SetData(object path, JValue value)
 {
     try
     {
         JObject request = _peer.Set(path.ToString(), value, OnSet, this._timeoutMs);
     }
     catch (Exception e)
     {
         throw new Exception(e.ToString());
     }
 }
 /// <summary>
 /// Sets data for a single jet path
 /// </summary>
 /// <param name="path">Jet path for the data (e.g. "6002/01)"</param>
 /// <param name="value">The new value for the path</param>
 private void SetData(string path, JValue value)
 {
     _localException = null;
     try
     {
         JObject request = _peer.Set(path.ToString(), value, OnSet, this._timeoutMs);
     }
     catch (Exception e)
     {
         _successEvent.Set();
         _localException = e;
     }
 }