Multiple signalr hubs with different configuration

450 views Asked by At

I am in a situation where I have multiple hubs in my project. I want to use a different HubConfiguration for each hub. This is because one of the hubs is connected up against a backplane, while the other one is not.

Basically, for one of the hubs, I have several worker processes running in other environments publishing data to it.

The other hub is basically just your standard hub, with no backplane attached.

Now, I know you can have multiple hub configurations as answered here.

Using this approach I can hook up the backplane to one of the configurations while not doing so for the other. However, it seems I am unable to specify which hubs should be available for each of the different configurations.

How do I do this?

UPDATE:

Basically, I have two types of applications: A standard ASP.NET application that hosts two different Hubs (HubA, HubB) and a "data collector" application that publishes data to HubA. The issue boils down to the fact that I do not know how to attach the backplane to ONLY HubA in my ASP.NET application.

I have added a diagram of what I am trying to achieve:

One hub using backplane, while the other one is not

0

There are 0 answers