Exemplo n.º 1
0
 /// <summary>
 /// Set a single element in the vector by name.
 /// </summary>
 /// <param name="tag"></param>
 /// <param name="value"></param>
 public void Set(string key, double value)
 {
     RSUtils.ReceiveSync <DefaultUpdateResponseType>(taskQueue, opPort.SetByKey(new List <string>()
     {
         key
     }, new List <double>()
     {
         value
     }, DateTime.Now), Myro.Utilities.Params.DefaultRecieveTimeout);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Set a single element in the vector by name.
 /// </summary>
 /// <param name="tag"></param>
 /// <param name="value"></param>
 public void Set(string key, double value)
 {
     //try
     //{
     RSUtils.ReceiveSync <DefaultUpdateResponseType>(taskQueue, opPort.SetByKey(new List <string>()
     {
         key
     }, new List <double>()
     {
         value
     }, DateTime.Now), Myro.Utilities.Params.defaultRecieveTimeout);
     //}
     //catch (KeyNotFoundException)
     //{
     //    throw new AdapterArgumentException(Strings.KeyNotFound(key));
     //}
 }