Skip to content
Discussion options

You must be logged in to vote

You can handle this like so, no?

store.OnBeforeRequest += (sender, e) =>
{
   e.Request.Properties["MyTracking"] = source.StartActivity("StepOne");
};

store.OnSucceedRequest += (sender, e) =>
{
    if(e.Request.Properties["MyTracking"]  is IDisposable d)
          d.Dispose();
};

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@danielwinkler
Comment options

Comment options

You must be logged in to vote
1 reply
@danielwinkler
Comment options

Answer selected by danielwinkler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants