Hi,
I'm trying to run Microsoft.Azure.WebJobs version 3.x from .Net framework 4.7.2 environment. I'm not using appsettings.json but have used Name resolver and reading my application settings from app.config.
I'm able to override the values in project.exe.config but not the CRON expression being used for timer trigger for a function. The WebJob is continuous. I have used timer trigger with %% to invoke.
Here is my builder:
var builder = new HostBuilder();
var resolver = new myNameResolver();
builder.ConfigureWebJobs(buil =>
{
buil.AddAzureStorageCoreServices();
buil.AddAzureStorage();
buil.AddServiceBus(servBus=>
{
servBus.MessageHandlerOptions.AutoComplete = false;
servBus.MessageHandlerOptions.MaxConcurrentCalls = myMaxConcurrentCalls;
servBus.ConnectionString = myServiceBusConnectionString;
servBus.MessageHandlerOptions.MaxAutoRenewDuration = TimeSpan.FromHours(12);
});
buil.AddTimers();
});
builder.ConfigureServices(serv => serv.AddSingleton<INameResolver>(resolver));
builder.ConfigureHostConfiguration(config =>
{
config.AddInMemoryCollection(BuildConfiguration(myStorageConnectionString));
config.AddEnvironmentVariables();
});
builder.ConfigureAppConfiguration(buil => buil.AddEnvironmentVariables());