Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inconsistent tenant/activity test
The test relied on accessing IHttpActivityFeature after the request completed in order to extract the Activity to assert against. However, the runtime (https://github.com/dotnet/aspnetcore/blob/main/src/Hosting/Hosting/src/Internal/HostingApplication.cs) actually sets the value of IHttpActivityFeature.Activity to null after each request so that the IHttpActivityFeature can be recycled. This commit works around this behavior by copying the Activity into a custom feature.
- Loading branch information