Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

ClientProvidedName from RabbitMqClientOptions not used when connecting using SSL #70

@NikoGJ

Description

@NikoGJ

Hi guys,

I just found out that the ClientProvidedName property of the RabbitMqClientOptions class is not used when connecting to the Rabbit instance using SSL. So in the Management UI, the connection name stays with "undefined" (not very pretty :))

By having a quick look at the code, we can see that the ClientProvidedName is correctly used in "RabbitMqConnectionFactory.cs" with the usage of a dedicated method "CreateNamedConnection" for that purpose. (cf. line 48)
But when connecting through SSL, as stated in the docs, the configuration is not quite the same and we have to use the TcpEndPoints property.
Unfortunately, this bypasses the CreateNamedConnection method and goes instead through a different execution path (CreateConnectionWithTcpEndpoints) where the ClientProvidedName property is not handled anymore.

Cheers,
Nico

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions