You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>
/// Returns a URI-like string of the form amqp-PROTOCOL://HOSTNAME:PORTNUMBER.
/// </summary>
/// <remarks>
/// This method is intended mainly for debugging and logging use.
/// </remarks>
public override string ToString()
{
return $"amqp://{HostName}:{Port}";
}
Compare this to the implementation of ConnectionFactory.SetUri(...)ConnectionFactory.cs, line 531 ff. where an Uri scheme of amqps is correctly interpreted to initialize the SSLOption:
private void SetUri(Uri uri)
{
Endpoint = new AmqpTcpEndpoint();
if (string.Equals("amqp", uri.Scheme, StringComparison.OrdinalIgnoreCase))
{
// nothing special to do
}
else if (string.Equals("amqps", uri.Scheme, StringComparison.OrdinalIgnoreCase))
{
Ssl.Enabled = true;
Ssl.Version = AmqpUriSslProtocols;
Ssl.AcceptablePolicyErrors = SslPolicyErrors.RemoteCertificateNameMismatch;
Port = AmqpTcpEndpoint.DefaultAmqpSslPort;
}
else
{
throw new ArgumentException($"Wrong scheme in AMQP URI: {uri.Scheme}");
}
The text was updated successfully, but these errors were encountered:
AmqpTcpEndpoint.ToString()
should correctly report a Uri scheme of amqps whenever its SSLOption is enabled.From AmqpTcpEndpoint.cs, line 282 ff.:
Compare this to the implementation of
ConnectionFactory.SetUri(...)
ConnectionFactory.cs, line 531 ff. where an Uri scheme of amqps is correctly interpreted to initialize the SSLOption:The text was updated successfully, but these errors were encountered: