Trace.CorrelationManager.LogicalOperationStack
enables having nested logical operation identifiers where the most common case is logging (NDC). Should it still work
One of the solutions mentioned here and on the web is to call LogicalSetData on context:
CallContext.LogicalSetData("one", null);
Trace.CorrelationManager.StartLogicalOperation();
But in fact, just reading current execution context is enough:
var context = Thread.CurrentThread.ExecutionContext;
Trace.CorrelationManager.StartLogicalOperation();