Skip to content

Commit

Permalink
fix: dotnetcore.cap 添加port设置
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Mar 24, 2024
1 parent b17b90a commit 568fb5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ private void ConfigureCap(ServiceConfigurationContext context)
option.HostName = configuration.GetValue<string>("Cap:RabbitMq:HostName");
option.UserName = configuration.GetValue<string>("Cap:RabbitMq:UserName");
option.Password = configuration.GetValue<string>("Cap:RabbitMq:Password");
option.Port = configuration.GetValue<int>("Cap:RabbitMq:Port");
});
var hostingEnvironment = context.Services.GetHostingEnvironment();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
"Enabled": true,
"RabbitMq": {
"HostName": "rabbitmq",
"Port": 5672,
"UserName": "admin",
"Password": "1q2w3E*"
"Password": "1q2w3E*",
"Port": 5672
}
},
"ElasticSearch": {
Expand Down

0 comments on commit 568fb5c

Please sign in to comment.