Created
January 7, 2018 22:02
-
-
Save Im5tu/11352635a743e3b69f2beead19d95ae9 to your computer and use it in GitHub Desktop.
CreateCorrelationIfNotExists
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 CreateCorrelationIfNotExists(Guid? correlationId = null) | |
{ | |
if(GetCorrelationStack().Count > 0) | |
return new EmptyDisposable(); | |
return CreateCorrelation(correlationId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment