Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created June 2, 2022 09:26
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 lgolubyev/d2d2690ef692c9f23d4b9a91d9c6ab0d to your computer and use it in GitHub Desktop.
Save lgolubyev/d2d2690ef692c9f23d4b9a91d9c6ab0d to your computer and use it in GitHub Desktop.
Activity.CurrentChanged += CurrentChanged;
void CurrentChanged(object? sender, ActivityChangedEventArgs e)
{
Console.WriteLine($"Activity.Current value changed from Activity: {e.Previous.OperationName} to Activity: {e.Current.OperationName}");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment