title: Serilog sending blank CorrelationId to Seq logger
body: <p>I'm using Serilog and Seq in a .net core web api to handle the logging. I've added a reference to Steve Gordon's <a href="https://github.com/stevejgordon/CorrelationId" rel="nofollow noreferrer">CorrelationId Middleware</a> to get the X-Correlation-ID from the headers (or create a new one) to update the TraceIdentifier.</p>
  
  <p>I've then added another middleware class to push the correlation id into the log context, but this isn't working correctly:</p>
  
  <pre><code>public class LogCorrelationIdMiddleware
  {
      private readonly RequestDelegate _next;
      public LogCorrelationIdMiddleware(RequestDelegate next)
      {
          _next = next;
      }
  
      public Task Invoke(HttpContext context)
      {
          // doesn't work - blank CorrelationId in Seq
          using (LogContext.PushProperty("CorrelationId", context.Request.HttpContext.TraceIdentifier)) { return _next(context); }
  
          // works - correct CorrelationId2 in Seq 
          //using (LogContext.PushProperty("CorrelationId2", context.Request.HttpContext.TraceIdentifier)) { return _next(context); }
      }
  }
  </code></pre>
  
  <p>Any ideas why?</p>