Beispiel #1
0
 public void Write(string message)
 {
     try
     {
         session.LockResource();
         io.PrintfAndFlush(message);
         session.UnlockResource();
     }
     catch (Exception exception)
     {
         throw CreateThrowUpException(exception);
     }
 }
 public void VXI11Lock(int timeout_ms)
 {
     try
     {
         mSession.LockResource(timeout_ms);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }