Last active
January 7, 2018 22:24
-
-
Save Im5tu/7440535ee94e51a12afe0d05f0f16d68 to your computer and use it in GitHub Desktop.
CreateCorrelation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IDisposable CreateCorrelation(Guid? correlationId = null) | |
{ | |
if (_correlationStack.Value == null) | |
_correlationStack.Value = new Stack<Guid>(); | |
_correlationStack.Value.Push(correlationId ?? Guid.NewGuid()); | |
return new DisposeCorrelation(_correlationStack); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment