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; }
/// <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); }
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 }