Skip to content

Commit d3627d1

Browse files
authored
Merge pull request yangzhongke#6 from bocblca/patch-3
Update ServicesCollectionExtensions.cs
2 parents 899e70e + 302eda1 commit d3627d1

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)