Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Move Activity Start from IOutgoingLogicalMessageContext to IOutgoingPhysicalMessageContext #13

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

mitchell-etter
Copy link
Contributor

Move the outgoing message activity start in the message pipeline from from IOutgoingLogicalMessageContext to IOutgoingPhysicalMessageContext. This change allows the Activity object to encompass a larger scope and allows it to be enriched from an implementation of IMutateOutgoingTransportMessages (resolves #9).

_activityEnricher = activityEnricher;
}

public override async Task Invoke(IOutgoingPhysicalMessageContext context, Func<Task> next)
{
using (var activity = StartActivity(context))
var activity = Activity.Current;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is OK but one thing I found in other places is you can't necessarily assume Activity.Current is there.

@jbogard jbogard merged commit 4b0d20a into jbogard:master Feb 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to Tag For Outgoing Message
2 participants