This post explains how to call a SignalR Hub from a Controller in ASP.NET Core and demonstrates how to simulate a recurring server-client interaction using SignalR Hub and ASP.NET Core Controller.
Table of contents
Overview of SignalR Hub Class and IHubContext InterfaceCall SignalR Hub from an ASP.NET Core ControllerUsing a Strongly Typed IHubContext To Call SignalR Hub Method from Controller in ASP.NET CoreConclusionSort: