yozepi
yozepi

Reputation: 372

SignalR backplane expected behavior

I'm creating a new SignalR (.net core) backplane and I'm a little confused about the backplane's expected behavior.

Upvotes: 1

Views: 232

Answers (2)

yozepi
yozepi

Reputation: 372

I think I found the answer to my question in the source for the Microsoft.AspNetCore.SignalR.StackExchangeRedis backplane.

It seems all message channels are prefixed with the type.FullName of the hub. So send-all, send-to-group, and send-to-user messages are always scoped to the Hub type doing the sending.

So all mesages are always (and only) received by hubs of the same type. And no messages sent from other hub types should ever be received by said hub!

Please correct me if I'm wrong about this. Having the wrong paradigm will reak havoc on my backplane. Which I hope to make public as soon as it's done.

Upvotes: 0

Brennan
Brennan

Reputation: 1933

The HubLifetimeManager class is generic with the hub type as the generic type. So it follows that the methods you implement only apply to the specific hub type.

Upvotes: 1

Related Questions