title: Check if HangFire.JobStorage is instantiated
body: <p>I have a ASP.NET MVC Application that works as Hangfire client - it enqueues different jobs.  I am using <code>SqlServerJobStorage</code> for Hangfire usage.</p>
  
  <p>For now i am working on a scenario when there is no connection to Hangfire Database, and somewhere in the future connection is being instantiated.</p>
  
  <p>The goal is that my ASP.NET MVC Application should keep working before this moment. After connection restores it should start to enqueue jobs.</p>
  
  <p>So application will throw an exception in <code>Global.asax</code>:</p>
  
  <pre><code>Hangfire.GlobalConfiguration.Configuration.UseSqlServerStorage("EshopServiceHangfire");
  </code></pre>
  
  <p>Moreover all job enqueues will also throw exceptions:</p>
  
  <pre><code> BackgroundJob.Enqueue&lt;ISomeClass&gt;(x =&gt; x.DoSomethingGreat(JobCancellationToken.Null));
  </code></pre>
  
  <p>I put the row from <code>Global.asax</code> in a try/catch block, so it will not throw.
  When somebody enqueue job, i want to check <code>JobStorage.Current</code> and if it is not initialized, i`l try to init it again with the same code:</p>
  
  <pre><code>Hangfire.GlobalConfiguration.Configuration.UseSqlServerStorage("EshopServiceHangfire");
  </code></pre>
  
  <p>Does anybody knows a way to do this? Documentation has no information about this.</p>
  
  <p>Something like <code>Hangfire.GlobalConfiguration.JobStorage.IsInitialized</code> ?</p>
  
  <p>Catching exception from Job enqueue also is a way, but i don`t like it, because it throws non specific </p>
  
  <blockquote>
    <p>InvalidOperationException: JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.</p>
  </blockquote>
  
  <p>Much appreciated for those who have read up to this place)</p>