File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public static int Main(string[] args) {
80
80
string exchangeType = args [ 2 ] ;
81
81
string routingKey = args [ 3 ] ;
82
82
83
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
83
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
84
84
{
85
85
using ( IModel ch = conn . CreateModel ( ) ) {
86
86
Subscription sub ;
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public static int Main(string[] args) {
74
74
string routingKey = args [ 3 ] ;
75
75
string message = args [ 4 ] ;
76
76
77
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
77
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
78
78
{
79
79
using ( IModel ch = conn . CreateModel ( ) ) {
80
80
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public static int Main(string[] args) {
74
74
string serverAddress = args [ 0 ] ;
75
75
string queueName = args [ 1 ] ;
76
76
77
- IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) ;
77
+ IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) ;
78
78
conn . ConnectionShutdown += new ConnectionShutdownEventHandler ( LogConnClose ) ;
79
79
80
80
using ( IModel ch = conn . CreateModel ( ) ) {
You can’t perform that action at this time.
0 commit comments