/// <summary> /// Converts an IBM XMS connection interface /// into an NMS connection interface. /// </summary> /// <param name="xmsConnection">IBM XMS connection interface.</param> /// <returns>Apache NMS connection interface.</returns> public static Apache.NMS.IConnection ToNMSConnection( IBM.XMS.IConnection xmsConnection) { return(xmsConnection != null ? new Apache.NMS.XMS.Connection(xmsConnection) : null); }
/// <summary> /// Constructs a connection object. /// </summary> public Connection(IBM.XMS.IConnection xmsConnection) { this.xmsConnection = xmsConnection; this.xmsConnection.ExceptionListener = this.HandleXmsException; }