示例#1
0
 /// <summary>
 /// Browses messages in a EMS queue. The callback gives access to the EMS Session
 /// and QueueBrowser in order to browse the queue and react to the contents.
 /// </summary>
 /// <param name="queueName">Name of the queue to browse, 
 /// (to be resolved to an actual destination by a DestinationResolver)</param>
 /// <param name="messageSelector">The EMS message selector expression (or <code>null</code> if none).</param>
 /// <param name="action">The action callback object that exposes the session/browser pair.</param>
 /// <returns></returns>
 /// <exception cref="EMSException">If there is any problem accessing the EMS API</exception>
 public object BrowseSelected(string queueName, string messageSelector, IBrowserCallback action)
 {
     AssertUtils.ArgumentNotNull(action, "action");
     return BrowseSelectedWithDelegate(queueName, messageSelector, action.DoInEms);
 }
示例#2
0
 /// <summary>
 /// Browses messages in the default EMS queue. The callback gives access to the EMS
 /// Session and QueueBrowser in order to browse the queue and react to the contents.
 /// </summary>
 /// <param name="action">The action callback object that exposes the session/browser pair.</param>
 /// <returns>the result object from working with the session</returns>
 /// <exception cref="EMSException">If there is any problem accessing the EMS API</exception>        
 public object Browse(IBrowserCallback action)
 {
     AssertUtils.ArgumentNotNull(action, "action");
     return BrowseWithDelegate(action.DoInEms);
 }
示例#3
0
 /// <summary>
 /// Browses messages in a EMS queue. The callback gives access to the EMS Session
 /// and QueueBrowser in order to browse the queue and react to the contents.
 /// </summary>
 /// <param name="queue">The queue to browse.</param>
 /// <param name="action">The action callback object that exposes the session/browser pair.</param>
 /// <returns>the result object from working with the session</returns>
 /// <exception cref="EMSException">If there is any problem accessing the EMS API</exception>        
 public object Browse(Queue queue, IBrowserCallback action)
 {
     AssertUtils.ArgumentNotNull(action, "action");
     return BrowseSelectedWithDelegate(queue, null, action.DoInEms);
 }
示例#4
0
 public MCSBrowserEventSink(IBrowserCallback webBrowserControl)
     : this()
 {
     this._WebBrowserControl = webBrowserControl;
 }