.net core 6.0.400-preview.22330.6 my code <img width="905" alt="image" src="https://user-images.githubusercontent.com/10775645/184289476-f4befc58-6637-45dd-a2ed-0820caa4aabc.png"> Memory analysis <img width="514" alt="image" src="https://user-images.githubusercontent.com/10775645/184280008-06c6a6ec-74ce-428a-922a-c16013063be0.png"> reason , HubConnectionBuilder.Build function <img width="1089" alt="image" src="https://user-images.githubusercontent.com/10775645/184289808-1585fe2e-c5c9-4221-8649-24387f99bd1d.png"> Add instance to DependencyInjectionEventSource._providers when ServiceProvider is created,but it can't remove when serviceprovider has no reference