Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <summary>
 /// Constructs a connection object.
 /// </summary>
 public Connection(IBM.XMS.IConnection xmsConnection)
 {
     this.xmsConnection = xmsConnection;
     this.xmsConnection.ExceptionListener = this.HandleXmsException;
 }