Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Is there a way to inject dependencies into a SignalR hub method, similar to how we can use
The issue is if each hub method requires different dependencies, you end up with a giant constructor, and may construct dependencies that aren't actually needed by the method that's being called. :)
I haven't tested but I guess injecting the IServiceProvider into the constructor would work, then I could use that or ActivatorUtilities in the hub method.