Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Option to add Client Provided Name #177

Open
Plaashond opened this issue Jan 11, 2022 · 0 comments
Open

No Option to add Client Provided Name #177

Plaashond opened this issue Jan 11, 2022 · 0 comments

Comments

@Plaashond
Copy link

In the ConnectionFactory factory = new ConnectionFactory(); on the official .net C# version you can specify Client-Provided Connection Name. This would be a useful enhancement as it would allow me to specify more information to the RabbitMQ Dashboard to identify unwanted connections while testing.
Bellow is the official example from RabbitMq documentation.

ConnectionFactory factory = new ConnectionFactory();
// "guest"/"guest" by default, limited to localhost connections
factory.UserName = user;
factory.Password = pass;
factory.VirtualHost = vhost;
factory.HostName = hostName;

// this name will be shared by all connections instantiated by
// this factory
factory.ClientProvidedName = "app:audit component:event-consumer";

IConnection conn = factory.CreateConnection();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant