+rabbitmq-users — please CC the list.
On 18 February 2015 at 01:36:20, Lei Wu (
car...@gmail.com) wrote:
> For the user exists in internal database, I can use the following
> statement establish connection.
>
> var factory = new ConnectionFactory { HostName = localBus, UserName="RabbitGuest",
> Password ="RabbitGuest", VirtualHost = "/" };
>
>
> However, we can't put production service account password in
> initializing ConnectionFactory class.
Read it from an environment variable, or an encrypted file. I wasn't suggesting hardcoding the value
but it has to be provided on ConnectionFactory. That's how you specify credentials with the .NET client.