diff options
Diffstat (limited to 'dotnet/Qpid.Client.Tests/requestreply1')
-rw-r--r-- | dotnet/Qpid.Client.Tests/requestreply1/ServiceProvidingClient.cs | 9 | ||||
-rw-r--r-- | dotnet/Qpid.Client.Tests/requestreply1/ServiceRequestingClient.cs | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/dotnet/Qpid.Client.Tests/requestreply1/ServiceProvidingClient.cs b/dotnet/Qpid.Client.Tests/requestreply1/ServiceProvidingClient.cs index bb5758c18c..a52b4e2c50 100644 --- a/dotnet/Qpid.Client.Tests/requestreply1/ServiceProvidingClient.cs +++ b/dotnet/Qpid.Client.Tests/requestreply1/ServiceProvidingClient.cs @@ -60,8 +60,9 @@ namespace Qpid.Client.Tests _channel.DeclareQueue(_serviceName, false, false, false); IMessageConsumer consumer = _channel.CreateConsumerBuilder(_serviceName) - .withPrefetch(100) - .withNoLocal(true) + .WithPrefetchLow(100) + .WithPrefetchHigh(500) + .WithNoLocal(true) .Create(); consumer.OnMessage = new MessageReceivedDelegate(OnMessage); } @@ -100,8 +101,8 @@ namespace Qpid.Client.Tests // Console.WriteLine("ReplyTo.RoutingKey = " + _replyToRoutingKey); _destinationPublisher = _channel.CreatePublisherBuilder() - .withExchangeName(_replyToExchangeName) - .withRoutingKey(_replyToRoutingKey) + .WithExchangeName(_replyToExchangeName) + .WithRoutingKey(_replyToRoutingKey) .Create(); _destinationPublisher.DisableMessageTimestamp = true; _destinationPublisher.DeliveryMode = DeliveryMode.NonPersistent; diff --git a/dotnet/Qpid.Client.Tests/requestreply1/ServiceRequestingClient.cs b/dotnet/Qpid.Client.Tests/requestreply1/ServiceRequestingClient.cs index 582f022719..e437b670bf 100644 --- a/dotnet/Qpid.Client.Tests/requestreply1/ServiceRequestingClient.cs +++ b/dotnet/Qpid.Client.Tests/requestreply1/ServiceRequestingClient.cs @@ -53,7 +53,7 @@ namespace Qpid.Client.Tests try { _publisher = _channel.CreatePublisherBuilder() - .withRoutingKey(_commandQueueName) + .WithRoutingKey(_commandQueueName) .Create(); _publisher.DisableMessageTimestamp = true; // XXX: need a "with" for this in builder? _publisher.DeliveryMode = DeliveryMode.NonPersistent; // XXX: need a "with" for this in builder? @@ -74,9 +74,10 @@ namespace Qpid.Client.Tests _channel.DeclareQueue(replyQueueName, false, true, true); IMessageConsumer messageConsumer = _channel.CreateConsumerBuilder(replyQueueName) - .withPrefetch(100) - .withNoLocal(true) - .withExclusive(true).Create(); + .WithPrefetchLow(100) + .WithPrefetchHigh(200) + .WithNoLocal(true) + .WithExclusive(true).Create(); _startTime = DateTime.Now.Ticks; |