//------------------- Rbr API ------------------------------------------------ public long GetNextSequence() { try { var _parameters = new string[] { }; //-- Send command string _strResult; var _success = udpClient.SendAndReceive(RbrApi.Name, RbrApi.OnGetNextSequence, _parameters, out _strResult); if (_success) { //T.LogRbr(LogSeverity.Debug, "RbrClient.GetNextSequence", string.Format("Returned={0}", _strResult)); var _outParams = UdpMessageParser.GetOutParameters(_strResult); if (_outParams.Length == 2 && _outParams[0] == "true") { return(long.Parse(_outParams[1])); } } throw new Exception("Rbr communication error"); } catch (Exception _ex) { throw new Exception("Rbr communication exception", _ex); } }