Azure函数应用程序:我可以将MaxCurrentsess essestings放在应用程序设置配置中,例如服务总线配置
我有以下设置以下设置host.json
for maxConcurrentsessessions
for Azure函数应用程序服务总线触发器。
"extensions": {
"serviceBus": {
"sessionHandlerOptions": {
"autoComplete": false,
"maxConcurrentSessions": 100
}
}
}
我可以设置此主机JSON配置功能应用程序配置应用程序设置(例如服务总线连接字符串)吗?如果是,怎么样?
I have below below settings host.json
for maxConcurrentSessions
for Azure Function app service bus trigger.
"extensions": {
"serviceBus": {
"sessionHandlerOptions": {
"autoComplete": false,
"maxConcurrentSessions": 100
}
}
}
Can I set this host json configuration Function App configuration application settings like service bus connection string? if Yes, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看,您可以使用
host.json
使用AppSettings
::因此,在您的情况下,定义appsetting
azurefunctionsjobhost__extensions__servicebus__sessessessessesshandleroptions__maxConcurrentsessess
将可以做到这一点。Looking at the documentation, you can override settings defined in the
host.json
usingappsettings
:So in you case defining an appsetting
AzureFunctionsJobHost__extensions__serviceBus__sessionHandlerOptions__maxConcurrentSessions
will do the trick.