SignalR not working when using sql server as backlplane -


i've tried setup following configuration sql server , signalr

http://www.asp.net/signalr/overview/performance/scaleout-with-sql-server

everything seems setup correctly, if profile sql server can see signalr making calls db, when call hub send message clients connected, message never sent connected browsers.

any idea problem?

thank @smnbss, saved life comment inside question. make clear in future same problem, here wrong implementation: getting context once like:

public class syncservice : isyncservice {     private ihubcontext statuschangehub { get; set; }      public gatewaysyncservice()     {         statuschangehub = globalhost.connectionmanager.gethubcontext<hub>();     }       public void syncstatuschange(status newstatus)     {         statuschangehub.clients.all.onstatuschange(newstatus);           } } 

but somehow work while not using backplane. , correct implementation: need context everytime want send message:

public class syncservice : isyncservice {     public void syncstatuschange(status newstatus)     {         var context = globalhost.connectionmanager.gethubcontext<hub>();          context.clients.all.onstatuschange(newstatus);           } } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -