title: Using Hangfire, how can I configure a web app to enqueue with BackgroundJobClient.Create without starting an in process server?
body: <p>Our web app enqueues jobs using <code>BackgroundJobClient.Create</code>, but we want to process all jobs in a separate Windows service rather than in our web app. If our web app starts without calling <code>builder.UseHangfireServer</code>, creating new jobs throws the following error:</p>
  
  <pre><code>System.InvalidOperationException: 
  JobStorage.Current property value has not been initialized. 
  You must set it before using Hangfire Client or Server API.
  </code></pre>
  
  <p>It appears that the <code>AddHangfire(options =&gt; ...UseSqlServerStorage(...)</code> lambda does not run until <code>UseHangfireServer</code> gets called. As a workaround, we can configure our web app to listen to queues named after some GUID, but that seems like a waste of resources for the web app which might run multiple instances in a web farm.</p>
  
  <p>Is there any way to configure a Hangfire client without starting a Hangfire server in the same process?</p>