title: C# HttpRequestMessage.GetCorrelationId method returns duplicates
body: <p>My team and I have been working on this issue for a couple of days and we can't determine the root cause why GetCorrelationId() returns duplicates GUID sometimes.</p>
  
  <p>Within the application that I'm working right now we use the correlation id to tie up the request path.</p>
  
  <p>For example the UI sends a Save request to the API in .NET. When the API calls the save method in the query service from the controller, it pass through the result of <code>Request.GetCorrelationId()</code> to the method call.</p>
  
  <p>The save method in the query service uses this parameter to insert a new row in the audit_logs table with the request information.</p>
  
  <p>The save method then calls other save methods on nested objects that belongs to the main Object, passing the correlation_id generated in the controller. </p>
  
  <p>Something like this</p>
  
  <pre><code>[ Controller ]
  var correlation_id = HttpRequestMessage.GetCorrelationId();
  {
    ParentObject.save(correlation_id) -&gt; {
      ChildObject1.save(correlation_id),
      ChildObject2.save(correlation_id),
    }
  }
  </code></pre>
  
  <p>My question is. Is this an issue of how GetCorrelationId creates the GUID object or there is something wrong with the configuration of the framework?</p>
  
  <p>The framework is .NET Framework 4.6.1
  We see this issue in IIS Express and IIS server</p>
  
  <p>I can't share code but I'll do my best to share as much information is needed to troubleshoot this issue.</p>
  
  <p>This are some examples of duplicates GUID</p>
  
  <p><a href="https://i.stack.imgur.com/biD20.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/biD20.png" alt="enter image description here"></a></p>
  
  <p>Thanks</p>