From cff7dc046568b207c9a08dea221427c54706c747 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 25 Jun 2010 17:55:46 +0000 Subject: 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 --- .../dotnet/examples/csharp.example.spout/csharp.example.spout.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/bindings/qpid/dotnet/examples/csharp.example.spout') diff --git a/cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs b/cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs index 7eeece3194..59ba35f12b 100644 --- a/cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs +++ b/cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs @@ -29,8 +29,8 @@ using Org.Apache.Qpid.Messaging; namespace Org.Apache.Qpid.Messaging.Examples { class Spout { // - // Sample invocation: csharp.example.drain.exe --broker localhost:5672 --timeout 30 my-queue - // This pro + // Sample invocation: csharp.example.spout.exe --broker localhost:5672 my-queue + // static bool NameVal(string In, out string nameOut, out string valueOut) { int pos = In.IndexOf("="); @@ -83,7 +83,7 @@ namespace Org.Apache.Qpid.Messaging.Examples { else { message = new Message(options.Content); - message.SetContentType("text/plain"); + message.ContentType = "text/plain"; } Address replyToAddr = new Address(options.ReplyTo); @@ -95,7 +95,7 @@ namespace Org.Apache.Qpid.Messaging.Examples { (0 == options.Timeout || stopwatch.Elapsed <= timespan); count++) { - if ("" != options.ReplyTo) message.SetReplyTo(replyToAddr); + if ("" != options.ReplyTo) message.ReplyTo = replyToAddr; string id = options.Id ; if ("" == id) { Guid g = Guid.NewGuid(); -- cgit v1.2.1