Skip to content

Instantly share code, notes, and snippets.

@Im5tu
Created January 7, 2018 21:57
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/211ad229e76c466935455f92ee9f7b45 to your computer and use it in GitHub Desktop.
Save Im5tu/211ad229e76c466935455f92ee9f7b45 to your computer and use it in GitHub Desktop.
GetCorrelationStack
private static readonly AsyncLocal<Stack<Guid>> _correlationStack = new AsyncLocal<Stack<Guid>>();
public static Stack<Guid> GetCorrelationStack() => _correlationStack.Value ?? new Stack<Guid>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment