private int SendSector201Comexchange(int datapak, int command, byte[] byteArray)
 {
     var sector201Data = new Sector201Data { Command = Convert.ToByte(command) };
     sector201Data.PutCommandDataVB(byteArray);
     _exchangeClient.RequestExWriteSector(datapak, 201, sector201Data);
     return _iExchangeAdmin.LastMessageID;
 }
示例#2
0
        private int SendSector201Comexchange(int datapak, int command, byte[] byteArray)
        {
            var sector201Data = new Sector201Data {
                Command = Convert.ToByte(command)
            };

            sector201Data.PutCommandDataVB(byteArray);
            _exchangeClient.RequestExWriteSector(datapak, 201, sector201Data);
            return(_iExchangeAdmin.LastMessageID);
        }
        private int SendSector201Comexchange(int datapak, int command, byte[] byteArray)
        {
            var sector201Data = new Sector201Data {
                Command = Convert.ToByte(command)
            };

            try
            {
                sector201Data.PutCommandDataVB(byteArray);
                _exchangeClient.RequestExWriteSector(datapak, 201, sector201Data);
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
                return(-1000);
            }
            finally
            {
                Marshal.ReleaseComObject(sector201Data);
            }

            return(_iExchangeAdmin.LastMessageID);
        }
        private int SendSector201Comexchange(int datapak, int command, byte[] byteArray)
        {
            var sector201Data = new Sector201Data { Command = Convert.ToByte(command) };
            try
            {

                sector201Data.PutCommandDataVB(byteArray);
                _exchangeClient.RequestExWriteSector(datapak, 201, sector201Data);

            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
                return -1000;
            }
            finally
            {
                Marshal.ReleaseComObject(sector201Data);

            }

            return _iExchangeAdmin.LastMessageID;
        }