azure - Pub/Sub and OWIN in Service Fabric -


i'm developing app in service fabric uses self-hosted signalr (via owin) send real-time data client.

among microservices have 1 stateless service (s1) receives data pub/sub broker , sends said data clients connected via signalr. i'm use this library implement pub/sub in service fabric. i'm aware use service bus, rediscache, etc pub/sub providers, team has decided try avoid options outside service fabric.

following this example managed successfuly setup s1 subscriber. add code self-hosted signalr server, s1 stops receiving data pub/sub.

i've narrowed error down following block of code:

protected override ienumerable<serviceinstancelistener> createserviceinstancelisteners() {     // yield return new serviceinstancelistener(servicecontext => new owincommunicationlistener(startup.configureapp, servicecontext, serviceeventsource.current, "httpendpoint"));     yield return new serviceinstancelistener(p => new subscribercommunicationlistener(this, p), "statelesssubscribercommunicationlistener");     yield return new serviceinstancelistener(context => new fabrictransportserviceremotinglistener(context, this, new fabrictransportremotinglistenersettings() { endpointresourcename = "pubsubendpoint" }), "statelessfabrictransportserviceremotinglistener"); } 

as presented, signalr server disabled , pub/sub works flawlessly. uncommenting line enables signalr server , pub/sub stops working.

can me understand why happens? ideas or sugestions welcome.

please yield subscribercommunicationlistener first. framework doesn't supply communication listener name target yet, first 1 used.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -