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.

enter image description here

note: using different solution file , hosted separately in iis in same server web api , web application site


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -