第 6 章 安全性
6.1. 使用用户和密码连接
复制链接链接已复制到粘贴板!
AMQ .NET 可以使用用户和密码验证连接。
				要指定用于身份验证的凭证,请在连接 URL 中设置 user 和 password 字段。
			
示例:使用用户和密码连接
Address addr = new Address("amqp://<user>:<password>@example.com");
Connection conn = new Connection(addr);
Address addr = new Address("amqp://<user>:<password>@example.com");
Connection conn = new Connection(addr);