We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At the moment AquaityService uses ThreadLocal to keep AppContainer and ServiceProviderContainer instances. But it brings problems if you want to make your tests to be used in async context. To solve this we must use AsyncLocal instead https://learn.microsoft.com/en-us/dotnet/api/system.threading.asynclocal-1?view=net-8.0&redirectedfrom=MSDN
private static readonly ThreadLocal<TApplication> AppContainer = new ThreadLocal<TApplication>(); private static readonly ThreadLocal<IServiceProvider> ServiceProviderContainer = new ThreadLocal<IServiceProvider>();
The text was updated successfully, but these errors were encountered:
DmitryBogatko
No branches or pull requests
At the moment AquaityService uses ThreadLocal to keep AppContainer and ServiceProviderContainer instances.
But it brings problems if you want to make your tests to be used in async context.
To solve this we must use AsyncLocal instead
https://learn.microsoft.com/en-us/dotnet/api/system.threading.asynclocal-1?view=net-8.0&redirectedfrom=MSDN
The text was updated successfully, but these errors were encountered: