Created
January 7, 2018 22:04
-
-
Save Im5tu/4b3f14b21d97dc1de948063f3b8f6bb4 to your computer and use it in GitHub Desktop.
CorrelationExample
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using(CorrelationContext.CreateCorrelationIfNotExists()) | |
{ | |
Console.WriteLine(CorrelationContext.GetCorrelationId()); | |
using(CorrelationContext.CreateCorrelationIfNotExists()) | |
{ | |
Console.WriteLine(CorrelationContext.GetCorrelationId()); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment