c# - Send signalr notification from web api to application site -
i have web api application in need send notification using signalr hub application site.
web api
hubconnection connection = new hubconnection("http://localhost:52620/"); var hub = connection.createhubproxy("testhub"); if (connection.state == connectionstate.disconnected) { await connection.start(); } await hub.invoke("sendnotifications", id.tostring()); web application
public class testhub : hub { public void sendnotifications(string id) { } } but notification not appended in application. have missed in ?
it returns method not found exception.
note: using different solution file , hosted separately in iis in same server web api , web application site

Comments
Post a Comment