summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-06-25 17:55:46 +0000
committerTed Ross <tross@apache.org>2010-06-25 17:55:46 +0000
commitcff7dc046568b207c9a08dea221427c54706c747 (patch)
tree95e7d49125ad4d552a1be163352fd4e04f62152a /cpp/bindings/qpid/dotnet/examples/csharp.example.drain/csharp.example.drain.cs
parentc3a6e87c3f21009135b5826de6917586477e0589 (diff)
downloadqpid-python-cff7dc046568b207c9a08dea221427c54706c747.tar.gz
QPID-2589 - Patch from Chuck Rolke
* Convert c-style Get() functions to c#-style properties. * Add powershell helloworld example. * Fix message SetContent to accept byte array or byte array slice. * Re-code Session GetReceiver and GetSender not to malloc new objects but to create the objects on the stack. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@958052 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.cs6
1 files changed, 3 insertions, 3 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 6740e6a076..2d763a306d 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
@@ -47,17 +47,17 @@ namespace Org.Apache.Qpid.Messaging.Examples {
while (receiver.Fetch(message, timeout))
{
Dictionary<string, object> properties = new Dictionary<string, object>();
- properties = message.GetProperties();
+ properties = message.Properties;
Console.Write("Message(properties={0}, content='",
message.MapAsString(properties));
- if ("amqp/map" == message.GetContentType())
+ if ("amqp/map" == message.ContentType)
{
Dictionary<string, object> content = new Dictionary<string, object>();
message.GetContent(content);
Console.Write(message.MapAsString(content));
}
- else if ("amqp/list" == message.GetContentType())
+ else if ("amqp/list" == message.ContentType)
{
Collection<object> content = new Collection<object>();
message.GetContent(content);