Skip to content

Commit 72e74e5

Browse files
Merge pull request #326 from JonasBarka/rabbitmq-tutorials-send-cs-formatting
2 parents c869d37 + fce59eb commit 72e74e5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dotnet/Send/Send.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@ public static void Main()
1010
using(var connection = factory.CreateConnection())
1111
using(var channel = connection.CreateModel())
1212
{
13-
channel.QueueDeclare(queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null);
13+
channel.QueueDeclare(queue: "hello",
14+
durable: false,
15+
exclusive: false,
16+
autoDelete: false,
17+
arguments: null);
1418

1519
string message = "Hello World!";
1620
var body = Encoding.UTF8.GetBytes(message);
1721

18-
channel.BasicPublish(exchange: "", routingKey: "hello", basicProperties: null, body: body);
22+
channel.BasicPublish(exchange: "",
23+
routingKey: "hello",
24+
basicProperties: null,
25+
body: body);
1926
Console.WriteLine(" [x] Sent {0}", message);
2027
}
2128

0 commit comments

Comments
 (0)