https://issues.apache.org/jira/browse/AMQNET-447
Throw an exception the user attempts to create a Durable Subscription that uses individual ack.
diff --git a/src/main/csharp/Session.cs b/src/main/csharp/Session.cs
index 46257ba..f7c95d1 100755
--- a/src/main/csharp/Session.cs
+++ b/src/main/csharp/Session.cs
@@ -526,6 +526,12 @@
throw new InvalidDestinationException("Cannot create a Consumer with a Null destination");
}
+ if (IsIndividualAcknowledge)
+ {
+ throw new NMSException("Cannot create a durable consumer for a session that is using " +
+ "Individual Acknowledgement mode.");
+ }
+
ActiveMQDestination dest = ActiveMQDestination.Transform(destination);
MessageConsumer consumer = null;