summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2011-01-03 16:59:39 +0000
committerCharles E. Rolke <chug@apache.org>2011-01-03 16:59:39 +0000
commitb2c164cc932af306f4f74f306b680194e44b3dcf (patch)
tree1ee1f6169f668df955e7b3e310b9ba7e6ba1c23a /cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
parentc3d6047e94210bd35f7c35b9bba0bc2e60841fa7 (diff)
downloadqpid-python-b2c164cc932af306f4f74f306b680194e44b3dcf.tar.gz
.NET Binding for Qpid Messaging:
Add the boolean variation of Get() and Fetch(). Modify drain example to use the boolean Fetch. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1054684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs')
-rw-r--r--cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs b/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
index 04a0764f7c..da8218bbf7 100644
--- a/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
+++ b/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
@@ -43,9 +43,9 @@ namespace Org.Apache.Qpid.Messaging.Examples {
Duration timeout = options.Forever ?
DurationConstants.FORVER :
DurationConstants.SECOND * options.Timeout;
- Message message;
+ Message message = new Message();
- while ((message = receiver.Fetch(timeout)) != null)
+ while (receiver.Fetch(ref message, timeout))
{
Dictionary<string, object> properties = new Dictionary<string, object>();
properties = message.Properties;