diff options
| author | Charles E. Rolke <chug@apache.org> | 2010-10-29 17:23:49 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2010-10-29 17:23:49 +0000 |
| commit | 88d0fc0f70daab03c9302ffa5af30d551372dac2 (patch) | |
| tree | b697794894beecbd97437bef3f38b5324940cbd0 | |
| parent | 14faaa5492a64986ed8a8e9b235664f1fa7a4bc4 (diff) | |
| download | qpid-python-88d0fc0f70daab03c9302ffa5af30d551372dac2.tar.gz | |
QPID-2807 More flexible acknowledgement
The message-level Acknowledge in Cpp was not reflected in the .NET Messaging binding.
This commit adds the ack to the code and to the doc book session method mapping table.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028859 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | cpp/bindings/qpid/dotnet/src/Session.cpp | 10 | ||||
| -rw-r--r-- | cpp/bindings/qpid/dotnet/src/Session.h | 2 | ||||
| -rw-r--r-- | doc/book/src/Programming-In-Apache-Qpid.xml | 12 |
3 files changed, 24 insertions, 0 deletions
diff --git a/cpp/bindings/qpid/dotnet/src/Session.cpp b/cpp/bindings/qpid/dotnet/src/Session.cpp index 6d40a27605..344c3b7d33 100644 --- a/cpp/bindings/qpid/dotnet/src/Session.cpp +++ b/cpp/bindings/qpid/dotnet/src/Session.cpp @@ -112,6 +112,16 @@ namespace Messaging { sessionp->acknowledge(sync);
}
+ void Session::Acknowledge(Message ^ message)
+ {
+ Acknowledge(message, false);
+ }
+
+ void Session::Acknowledge(Message ^ message, bool sync)
+ {
+ sessionp->acknowledge(*(message->NativeMessage), sync);
+ }
+
void Session::Reject(Message ^ message)
{
sessionp->::qpid::messaging::Session::reject(*(message->NativeMessage));
diff --git a/cpp/bindings/qpid/dotnet/src/Session.h b/cpp/bindings/qpid/dotnet/src/Session.h index d34289b1bb..aa42cf5668 100644 --- a/cpp/bindings/qpid/dotnet/src/Session.h +++ b/cpp/bindings/qpid/dotnet/src/Session.h @@ -104,6 +104,8 @@ namespace Messaging { void Rollback();
void Acknowledge();
void Acknowledge(bool sync);
+ void Acknowledge(Message ^ message);
+ void Acknowledge(Message ^ message, bool sync);
void Reject(Message ^);
void Release(Message ^);
void Sync();
diff --git a/doc/book/src/Programming-In-Apache-Qpid.xml b/doc/book/src/Programming-In-Apache-Qpid.xml index bec10402b8..1de6f71d31 100644 --- a/doc/book/src/Programming-In-Apache-Qpid.xml +++ b/doc/book/src/Programming-In-Apache-Qpid.xml @@ -5251,6 +5251,10 @@ using (TransactionScope ts = new TransactionScope()) <entry>void acknowledge(bool sync=false);</entry> </row> <row> + <entry>C++</entry> + <entry>void acknowledge(Message&, bool sync=false);</entry> + </row> + <row> <entry>.NET</entry> <entry>public void Acknowledge();</entry> </row> @@ -5259,6 +5263,14 @@ using (TransactionScope ts = new TransactionScope()) <entry>public void Acknowledge(bool sync);</entry> </row> <row> + <entry>.NET</entry> + <entry>public void Acknowledge(Message __p1);</entry> + </row> + <row> + <entry>.NET</entry> + <entry>public void Acknowledge(Message __p1, bool __p2);</entry> + </row> + <row> <entry namest="c1" nameend="c2" align="center">Method: Reject</entry> </row> <row> |
