Created
January 7, 2018 21:57
-
-
Save Im5tu/211ad229e76c466935455f92ee9f7b45 to your computer and use it in GitHub Desktop.
GetCorrelationStack
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
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