File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
projects/Applications/PublisherConfirms Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 55
55
Persistent = true
56
56
} ;
57
57
58
+ string hostname = "localhost" ;
59
+ if ( args . Length > 0 )
60
+ {
61
+ if ( false == string . IsNullOrWhiteSpace ( args [ 0 ] ) )
62
+ {
63
+ hostname = args [ 0 ] ;
64
+ }
65
+ }
66
+
58
67
#pragma warning disable CS8321 // Local function is declared but never used
59
68
60
69
await PublishMessagesIndividuallyAsync ( ) ;
61
70
await PublishMessagesInBatchAsync ( ) ;
62
71
await HandlePublishConfirmsAsynchronously ( ) ;
63
72
64
- static Task < IConnection > CreateConnectionAsync ( )
73
+ Task < IConnection > CreateConnectionAsync ( )
65
74
{
66
- var factory = new ConnectionFactory { HostName = "localhost" } ;
75
+ var factory = new ConnectionFactory { HostName = hostname } ;
67
76
return factory . CreateConnectionAsync ( ) ;
68
77
}
69
78
You can’t perform that action at this time.
0 commit comments