Skip to content

Adding Support for ASP.NET Core SignalR Hubs #3

New issue

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

Open
kostemar opened this issue Jun 1, 2018 · 1 comment
Open

Adding Support for ASP.NET Core SignalR Hubs #3

kostemar opened this issue Jun 1, 2018 · 1 comment

Comments

@kostemar
Copy link

kostemar commented Jun 1, 2018

Hello

I really like the approach demonstrated with this repo where you don't replace the whole DI container that ASP.NET Core provides.

I was wondering if there are any plans to add support for SignalR hubs. In particular, I would like to support a scenario similar to the one described in the StockTicker sample. In the StockTicker sample, the StockTickerHub has a dependency on IStockTicker. A StockTicker in turn has a dependency on IHubContext<StockTickerHub>.

@dotnetjunkie
Copy link
Owner

With SignalR Core, it should be just a matter of replacing the default IHubActivator implementation with one that resolves from your favorite container, or creates hub instances using Pure DI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants