Skip to content

Commit 047215b

Browse files
Don't rely on implicit string coercion
1 parent 144bb5a commit 047215b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dotnet/RPCClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public RPCClient()
1515
var factory = new ConnectionFactory() { HostName = "localhost" };
1616
connection = factory.CreateConnection();
1717
channel = connection.CreateModel();
18-
replyQueueName = channel.QueueDeclare();
18+
replyQueueName = channel.QueueDeclare().QueueName;
1919
consumer = new QueueingBasicConsumer(channel);
2020
channel.BasicConsume(replyQueueName, true, consumer);
2121
}

dotnet/ReceiveLogs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void Main()
1414
{
1515
channel.ExchangeDeclare("logs", "fanout");
1616

17-
var queueName = channel.QueueDeclare();
17+
var queueName = channel.QueueDeclare().QueueName;
1818

1919
channel.QueueBind(queueName, "logs", "");
2020
var consumer = new QueueingBasicConsumer(channel);

dotnet/ReceiveLogsDirect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void Main(string[] args)
1313
using (var channel = connection.CreateModel())
1414
{
1515
channel.ExchangeDeclare("direct_logs", "direct");
16-
var queueName = channel.QueueDeclare();
16+
var queueName = channel.QueueDeclare().QueueName;
1717

1818
if (args.Length < 1)
1919
{

dotnet/ReceiveLogsTopic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void Main(string[] args)
1313
using (var channel = connection.CreateModel())
1414
{
1515
channel.ExchangeDeclare("topic_logs", "topic");
16-
var queueName = channel.QueueDeclare();
16+
var queueName = channel.QueueDeclare().QueueName;
1717

1818
if (args.Length < 1)
1919
{

0 commit comments

Comments
 (0)