Skip to content
Permalink
Browse files
AMQNET-637 NMS 2.0 - As discussed during development, just keep the T…
…ask based async and remove the completion listener style, its in keeping with intent of JMS 2.0 but with modern.NET async style.
  • Loading branch information
michaelpearce-gain authored and michaelandrepearce committed Jun 18, 2020
1 parent 26f71f6 commit e97b57a156c702c5aa54bc5c8257c63483c66489
Showing 2 changed files with 0 additions and 28 deletions.
@@ -20,8 +20,6 @@

namespace Apache.NMS
{
public delegate void CompletionListener(IMessage message, Exception e);


/// <summary>
/// A delegate that a client can register that will be called each time a Producer's send method is
@@ -60,28 +58,6 @@ public interface IMessageProducer : System.IDisposable
void Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority,
TimeSpan timeToLive);

/// <summary>
/// Sends the message to the default destination for this producer
/// </summary>
void Send(IMessage message, CompletionListener completionListener);

/// <summary>
/// Sends the message to the default destination with the explicit QoS configuration
/// </summary>
void Send(IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive,
CompletionListener completionListener);

/// <summary>
/// Sends the message to the given destination
/// </summary>
void Send(IDestination destination, IMessage message, CompletionListener completionListener);

/// <summary>
/// Sends the message to the given destination with the explicit QoS configuration
/// </summary>
void Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority,
TimeSpan timeToLive, CompletionListener completionListener);

/// <summary>
/// Sends the message to the default destination for this producer
/// </summary>
@@ -47,8 +47,6 @@ public interface INMSProducer : System.IDisposable

Task<INMSProducer> SendAsync(IDestination destination, object body);

CompletionListener CompletionListener { get; set; }

/// <summary>
/// Provides access to the message properties (headers).
/// </summary>
@@ -100,8 +98,6 @@ public interface INMSProducer : System.IDisposable

//Method chaining setters
//Allows message delivery options, headers, and properties to be configured using method chaining
INMSProducer SetCompletionListener(CompletionListener completionListener);

INMSProducer SetDeliveryDelay(TimeSpan deliveryDelay);

INMSProducer SetTimeToLive(TimeSpan timeToLive);

0 comments on commit e97b57a

Please sign in to comment.