File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/DotNetCore.CAP.RabbitMQ Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,12 @@ private static Func<Task<IConnection>> CreateConnection(RabbitMQOptions options)
109109 if ( options . HostName . Contains ( "," ) )
110110 {
111111 options . ConnectionFactoryOptions ? . Invoke ( factory ) ;
112-
113- return ( ) => factory . CreateConnectionAsync ( AmqpTcpEndpoint . ParseMultiple ( options . HostName ) ) ;
112+ var endpoints = AmqpTcpEndpoint . ParseMultiple ( options . HostName ) ;
113+ foreach ( var endpoint in endpoints )
114+ {
115+ endpoint . Ssl = factory . Ssl ;
116+ }
117+ return ( ) => factory . CreateConnectionAsync ( endpoints ) ;
114118 }
115119
116120 factory . HostName = options . HostName ;
@@ -161,4 +165,4 @@ public virtual bool Return(IChannel channel)
161165
162166 return false ;
163167 }
164- }
168+ }
You can’t perform that action at this time.
0 commit comments