解决方案:https://github.com/Azure/azure-functions-servicebus-extension/issues/81#issuecomment-1139175220
public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { var tempServices = builder.Services.BuildServiceProvider(); var azureFuncConfig = tempServices.GetService<IConfiguration>(); var config = new ConfigurationBuilder() .AddConfiguration(azureFuncConfig) // if you commented this line hots.json settings will be overridden to defaults .AddEnvironmentVariables() .Build(); builder.Services.AddSingleton<IConfiguration>(config); } }
相关帖子: c# - Azure Function Timeout after 30 minutes - Stack Overflow
标签:Function,azureFuncConfig,builder,host,var,json,Azure From: https://www.cnblogs.com/lyyd/p/18382059