Skip to content

Commit c8e9c34

Browse files
committed
Fixes
1 parent d32e4bd commit c8e9c34

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dotnet-visual-studio/1_Receive/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void Main()
1111
using( var connection = factory.CreateConnection() )
1212
using( var channel = connection.CreateModel() )
1313
{
14-
channel.QueueDeclare( queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null);
14+
channel.QueueDeclare( queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null );
1515

1616
var consumer = new QueueingBasicConsumer( channel );
1717
channel.BasicConsume( queue: "hello", noAck: true, consumer: consumer );

dotnet-visual-studio/2_NewTask/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void Main( string[] args )
1818
var properties = channel.CreateBasicProperties();
1919
properties.SetPersistent( true );
2020

21-
channel.BasicPublish(exchange: "", routingKey: "task_queue", basicProperties: properties, body: body );
21+
channel.BasicPublish( exchange: "", routingKey: "task_queue", basicProperties: properties, body: body );
2222
Console.WriteLine( " [x] Sent {0}", message );
2323
}
2424

dotnet-visual-studio/5_EmitLogTopic/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void Main( string[] args )
1616
var routingKey = ( args.Length > 0 ) ? args[0] : "anonymous.info";
1717
var message = ( args.Length > 1 ) ? string.Join( " ", args.Skip( 1 ).ToArray() ) : "Hello World!";
1818
var body = Encoding.UTF8.GetBytes( message );
19-
channel.BasicPublish( "topic_logs", routingKey, null, body );
19+
channel.BasicPublish( exchange: "topic_logs", routingKey: routingKey, basicProperties: null, body: body );
2020
Console.WriteLine( " [x] Sent '{0}':'{1}'", routingKey, message );
2121
}
2222
}

dotnet/EmitLogTopic.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void Main( string[] args )
1616
var routingKey = ( args.Length > 0 ) ? args[0] : "anonymous.info";
1717
var message = ( args.Length > 1 ) ? string.Join( " ", args.Skip( 1 ).ToArray() ) : "Hello World!";
1818
var body = Encoding.UTF8.GetBytes( message );
19-
channel.BasicPublish( "topic_logs", routingKey, null, body );
19+
channel.BasicPublish( exchange: "topic_logs", routingKey: routingKey, basicProperties: null, body: body );
2020
Console.WriteLine( " [x] Sent '{0}':'{1}'", routingKey, message );
2121
}
2222
}

dotnet/NewTask.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void Main( string[] args )
1818
var properties = channel.CreateBasicProperties();
1919
properties.SetPersistent( true );
2020

21-
channel.BasicPublish(exchange: "", routingKey: "task_queue", basicProperties: properties, body: body );
21+
channel.BasicPublish( exchange: "", routingKey: "task_queue", basicProperties: properties, body: body );
2222
Console.WriteLine( " [x] Sent {0}", message );
2323
}
2424

dotnet/Receive.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void Main()
1111
using( var connection = factory.CreateConnection() )
1212
using( var channel = connection.CreateModel() )
1313
{
14-
channel.QueueDeclare( queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null);
14+
channel.QueueDeclare( queue: "hello", durable: false, exclusive: false, autoDelete: false, arguments: null );
1515

1616
var consumer = new QueueingBasicConsumer( channel );
1717
channel.BasicConsume( queue: "hello", noAck: true, consumer: consumer );

0 commit comments

Comments
 (0)