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.

No documentation about JobHostOptions

See original GitHub issue

Using the version 3.0.0, JobHostConfiguration has disapeared.

To configure the webjob, from what I can see, I can use IOptions<JobHostOptions>. I search on google: https://www.google.ca/search?rlz=1C1CHBF_enCA784CA784&ei=5hnFW8u1Ja-3ggf3n6igDQ&q=c%23+core+"JobHostOptions"&oq=c%23+core+"JobHostOptions"&gs_l=psy-ab.3...5061.5741.0.6012.2.2.0.0.0.0.119.212.1j1.2.0....0...1c.1.64.psy-ab..0.0.0....0.7dbt4mv3PfE

There is no result.

Could you write a documentation explaining how to make a new JobHost using IOptions<JobHostOptions>

My final purpose is to be able to continue to use:

var jobHostConfiguration = new JobHostConfiguration();
          jobHostConfiguration.JobActivator = new JobActivator(host);
          jobHostConfiguration.Queues.MaxDequeueCount = 1;
          jobHostConfiguration.Queues.BatchSize = 1;
          jobHostConfiguration.Queues.MaxPollingInterval = TimeSpan.FromSeconds(15);
          jobHostConfiguration.DashboardConnectionString = ConnectionStringsSettings.AzureWebJobsDashboard;
          jobHostConfiguration.StorageConnectionString = ConnectionStringsSettings.AzureWebJobsStorage;

which stop working on v3.0.0 because JobHostConfiguration disapeared.

I image that I can configure it in the appsettings using something like:

	"JobHost": {
		"DashboardConnectionString ": "xxxxxx",
		"StorageConnectionString ": "xxxxxx",
		"Queues": {
			"MaxDequeueCount ": "1",
			"BatchSize ": "1",
			"MaxPollingInterval ": 15
		}
	},

Thanks for your help.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
ranoufcommented, Oct 17, 2018

But there is still no documentation available, so I let the issue opened 😃

1reaction
mathewccommented, Feb 12, 2019

New doc is now live:

For any further issues, use the feedback links on the doc, and issues for doc can be created in the docs repo: https://github.com/MicrosoftDocs/azure-docs/issues rather than this repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.Net 4.7 - Azure WebJob Project - JobHostConfiguration ...
1 Answer 1 ... If you want to Azure WebJob SDK V3, the JobHostConfiguration and JobHost have been removed. In version V3, the...
Read more >
How to use the WebJobs SDK - Azure App Service
Learn more about how to write code for the WebJobs SDK. Create event-driven background processing jobs that access data in Azure and ...
Read more >
How to call ConfigureAppConfiguration when testing Azure ...
How to update a doc in a collection with Azure function Cosmos DB trigger? Microsoft.Azure.Cosmos Most Efficient way to Export Large Data ·...
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