title: HangFire / ASPNET Core - Increasing a value in RecurringJob
body: <p>These are simple examples that will help me, and others, to understand better how HangFire works. They're seem silly questions, but I will apreciate if you could answer them.</p>
  <ol>
  <li>I have the following method:</li>
  </ol>
  <pre><code>public void Print(int i)
  {
    Console.WriteLine(string.Format(&quot;The value of i is {0}.&quot;, i));
  }
  </code></pre>
  <p>I need to set a RecurringJob that will start with <code>i = 1</code> and will stop when <code>i = 10</code>.</p>
  <ol start="2">
  <li>The same method 1, but a little different.</li>
  </ol>
  <pre><code>public int Print(int i)
  {
    Console.WriteLine(string.Format(&quot;The value of i is {0}.&quot;, i));
    
    return i++;
  }
  </code></pre>
  <p>How to use the Print method returning value to set the next iteration of RecurringJob?</p>
  <p>Thank you very much!</p>