diff options
| author | Ted Ross <tross@apache.org> | 2010-06-25 17:55:46 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-06-25 17:55:46 +0000 |
| commit | cff7dc046568b207c9a08dea221427c54706c747 (patch) | |
| tree | 95e7d49125ad4d552a1be163352fd4e04f62152a /cpp/bindings/qpid/dotnet/examples/csharp.example.spout | |
| parent | c3a6e87c3f21009135b5826de6917586477e0589 (diff) | |
| download | qpid-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.spout')
| -rw-r--r-- | cpp/bindings/qpid/dotnet/examples/csharp.example.spout/csharp.example.spout.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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();
|
