title: Asp.Net Core Mutex
body: <p>I have mutex:
  </p>
  
  <pre><code>_logger.Info("Step_1");
  if (mutex.WaitOne())
  {
      try
      {
         _logger.Info("Step_2");
         //Some tasks... 
      }
      catch (Exception ex)
      {
          _logger.Error(ex, "Mutex");
      }
      finally
      {
          mutex.ReleaseMutex();
      }
  }
  else
  {
      _logger.Info("MutexError!");
  }
  </code></pre>
  
  <p>mutex definition:</p>
  
  <pre class="lang-cs prettyprint-override"><code>mutex = new Mutex(false, "ImportMutex", out createdNew);
  </code></pre>
  
  <p>In Step_1 I have 14 requests but the Step_2  reaches only 9 (This is only example sometimes its 10 or 8 requests reaches). Why? What I do wrong in this mutex?</p>