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 5555 Persistent = true
5656} ;
5757
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+
5867#pragma warning disable CS8321 // Local function is declared but never used
5968
6069await PublishMessagesIndividuallyAsync ( ) ;
6170await PublishMessagesInBatchAsync ( ) ;
6271await HandlePublishConfirmsAsynchronously ( ) ;
6372
64- static Task < IConnection > CreateConnectionAsync ( )
73+ Task < IConnection > CreateConnectionAsync ( )
6574{
66- var factory = new ConnectionFactory { HostName = "localhost" } ;
75+ var factory = new ConnectionFactory { HostName = hostname } ;
6776 return factory . CreateConnectionAsync ( ) ;
6877}
6978
You can’t perform that action at this time.
0 commit comments