Skip to content

Commit 302eda1

Browse files
authored
Update ServicesCollectionExtensions.cs
add rabbitmq connect username password
1 parent 899e70e commit 302eda1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

最后大项目代码/YouZack-VNext/Zack.EventBus/ServicesCollectionExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public static IServiceCollection AddEventBus(this IServiceCollection services, s
5353
var factory = new ConnectionFactory()
5454
{
5555
HostName = optionMQ.HostName,
56+
UserName=optionMQ.UserName,
57+
Password=optionMQ.Password,
5658
DispatchConsumersAsync = true
5759
};
5860
//eventBus归DI管理,释放的时候会调用Dispose

0 commit comments

Comments
 (0)