Missing-Core-DI-Extensions icon indicating copy to clipboard operation
Missing-Core-DI-Extensions copied to clipboard

Adding Support for ASP.NET Core SignalR Hubs

Open kostemar opened this issue 7 years ago • 1 comments
trafficstars

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>.

kostemar avatar Jun 01 '18 06:06 kostemar

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.

dotnetjunkie avatar Jun 01 '18 10:06 dotnetjunkie