/// <summary> /// Clear the <see cref="TrackingContext"/> stored into the <paramref name="messageContext"/>. /// </summary> /// <param name="messageContext"> /// Message context to clear the <see cref="TrackingContext"/> from. /// </param> public static void ClearTrackingContext(this IBaseMessageContext messageContext) { if (messageContext == null) { throw new ArgumentNullException(nameof(messageContext)); } messageContext.DeleteProperty(TrackingProperties.ProcessActivityId); messageContext.DeleteProperty(TrackingProperties.ProcessingStepActivityId); messageContext.DeleteProperty(TrackingProperties.MessagingStepActivityId); }