File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
DeclareQueue/src/examples
ExceptionTest/src/examples
LowlevelLogTail/src/examples
ShutdownableClient/src/examples
ShutdownableServer/src/examples Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public static int Main(string[] args) {
100
100
string serverAddress = args [ optionIndex ++ ] ;
101
101
string inputQueueName = args [ optionIndex ++ ] ;
102
102
103
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
103
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
104
104
{
105
105
using ( IModel ch = conn . CreateModel ( ) ) {
106
106
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public static int Main(string[] args) {
75
75
76
76
string serverAddress = args [ 0 ] ;
77
77
78
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
78
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
79
79
{
80
80
conn . ConnectionShutdown += new ConnectionShutdownEventHandler ( First ) ;
81
81
conn . ConnectionShutdown += new ConnectionShutdownEventHandler ( OnConnectionShutdown ) ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public static int Main(string[] args) {
81
81
string exchangeType = args [ 2 ] ;
82
82
string routingKey = args [ 3 ] ;
83
83
84
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
84
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
85
85
{
86
86
using ( IModel ch = conn . CreateModel ( ) )
87
87
{
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public static int Main(string[] args) {
76
76
int messageCount = int . Parse ( args [ 1 ] ) ;
77
77
78
78
using ( IConnection conn =
79
- new ConnectionFactory ( ) . CreateConnection ( serverAddress ) )
79
+ new ConnectionFactory ( AmqpTcpEndpoint . Parse ( serverAddress ) ) . CreateConnection ( ) )
80
80
{
81
81
Stopwatch sendTimer = new Stopwatch ( ) ;
82
82
Stopwatch receiveTimer = new Stopwatch ( ) ;
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ public static int Main(string[] args) {
111
111
exchange = "" ;
112
112
}
113
113
114
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( uri ) )
114
+ using ( IConnection conn = new ConnectionFactory ( new AmqpTcpEndpoint ( uri ) ) . CreateConnection ( ) )
115
115
{
116
116
using ( IModel ch = conn . CreateModel ( ) ) {
117
117
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public static int Main(string[] args) {
71
71
return 2 ;
72
72
}
73
73
74
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( args [ 0 ] ) ) {
74
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( args [ 0 ] ) ) . CreateConnection ( ) ) {
75
75
using ( IModel ch = conn . CreateModel ( ) ) {
76
76
object [ ] callArgs = new object [ 1 ] ;
77
77
if ( args . Length > 1 ) {
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public static int Main(string[] args) {
71
71
return 2 ;
72
72
}
73
73
74
- using ( IConnection conn = new ConnectionFactory ( ) . CreateConnection ( args [ 0 ] ) ) {
74
+ using ( IConnection conn = new ConnectionFactory ( AmqpTcpEndpoint . Parse ( args [ 0 ] ) ) . CreateConnection ( ) ) {
75
75
using ( IModel ch = conn . CreateModel ( ) ) {
76
76
Subscription sub = new Subscription ( ch , "ShutdownableServer" ) ;
77
77
new ShutdownableServer ( sub ) . MainLoop ( ) ;
You can’t perform that action at this time.
0 commit comments