title: What is the replacement for Microsoft.Azure.WebHosts.JobHostConfiguration
body: <p>Trying to follow <a href="https://twitter.com/matthoneycutt" rel="noreferrer">@matthoneycutt</a> 's <a href="https://app.pluralsight.com/library/courses/azure-iot-hub-developers-getting-started/table-of-contents" rel="noreferrer">tutorial on Azure IoT Hub</a> it seems like 
  Microsoft.Azure.WebHosts.JobHostConfiguration vanished between 3.0.0-beta5
  and 3.0.0-rc1 releases of  Microsoft.Azure.WebHosts.Host in the Microsoft.Azure.WebHosts nuget package?</p>
  
  <p>What would be the approach to get this code up running in Microsoft.Azure.WebHosts 3.0.0-rc1?</p>
  
  <pre><code>var processorHost = new EventProcessorHost(hubName, consumerGroupName, iotHubConnectionString, storageConnectionString,storageContainerName);
  processorHost.RegisterEventProcessorAsync&lt;LoggingEventProcessor&gt;().Wait();
  var eventHubConfig = new EventHubConfiguration();
  eventHubConfig.AddEventProcessorHost(hubName, processorHost);
  var configuration = new JobHostConfiguration(storageConnectionString);
  configuration.UseEventHub(eventHubConfig);
  var host = new JobHost(configuration);
  host.RunAndBlock();
  </code></pre>
  
  <p>Seems related to <a href="https://stackoverflow.com/questions/52150861/upgrading-a-azure-function-app-to-3-0-0-beta8-and-having-som-di-code-break-after">this post</a>, though in a different context</p>