Skip to content

Instantly share code, notes, and snippets.

@Im5tu
Created January 7, 2018 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Im5tu/11352635a743e3b69f2beead19d95ae9 to your computer and use it in GitHub Desktop.
Save Im5tu/11352635a743e3b69f2beead19d95ae9 to your computer and use it in GitHub Desktop.
CreateCorrelationIfNotExists
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