Пример #1
0
 public RvMessaging(Uri address, Rv.Transport transport)
 {
     Contract.Requires(address != null);
     Contract.Requires(transport != null);
     Address    = address;
     _transport = transport;
 }
 public RvMultiSubjectMessaging(Rv.Transport transport, Uri address) : base(address)
 {
     if (transport == null)
     {
         throw new ArgumentNullException(nameof(transport));
     }
     _transport = transport;
 }
Пример #3
0
        /// <summary>
        /// Trnasport Set
        /// </summary>
        private int TibTransportSetting()
        {
            int bRet = -1;

            try
            {
                tibTrans = new NetTransport(SERVICE, NETWORK, DAEMON);
                bRet     = 0;
            }
            catch (Exception ex)
            {
                CLogManager.Instance.Log(new CExceptionLogFormat(Catagory.Error, "EMP", ex));
                CLogManager.Instance.Log(new CStatusLogFormat(Catagory.Error, "OGS", "TIB", "TibTransportSetting \r\n" + ex.ToString()));
            }
            return(bRet);
        }
Пример #4
0
        public static void Dispose(this Rv.Transport transport)
        {
            if (transport == null)
            {
                return;
            }

            try
            {
                transport.Destroy();
            }
            catch
            {
                // Dispose methods must not throw exceptions
            }
            GC.SuppressFinalize(transport);  // RV does not do this, so we have to
        }