question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.AddTimers() accepts TimeOptions with no options

See original GitHub issue

IWebJobsBuilder extension method .AddTimers(Action<TimerOptions>) accepts a configure argument of Action<TimerOptions>, but there’s nothing that can be configured using TimerOptions.

image

Repro steps

Create a simple WebJob.

hostBuilder.ConfigureWebJobs(builder =>
{
  builder.AddAzureStorageCoreServices();
  builder.AddTimers(options => options.???); // unusable
});

Expected behavior

  1. Options to provide what’s possible (properties, methods).
  2. If those are extension methods on TimerOptions that are missing, they should be in the same namespace as the .AddTimers() method (Microsoft.Azure.WebJobs).

Related information

Provide any related information

Microsoft.Azure.WebJobs: 3.0.6 Microsoft.Azure.WebJobs.Extensions: 3.0.1 Microsoft.Azure.WebJobs.Extensions.Storage: 3.0.5

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SeanFeldmancommented, Feb 7, 2020

Thanks @paulbatum. The least that could be done is an XMLDoc comment to provide an idea. Or a deprecation note until it’s removed.

0reactions
paulbatumcommented, Feb 7, 2020

Also AddTimers(...) and TimerOptions live in webjobs-sdk-extensions so I need to move this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure function app executing when OPTIONS request made?
My question: it sounds like maybe my function is being executed and when no Authorization header and/or no payload is found it throws...
Read more >
ModelSim Command Reference Manual
loops to be applied with commands that do not accept wildcards.) ... The -expr and the -time options may be used ... addTime...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found