How to implement an event bus for Blazor components in which the publisher publishes a specific event plus a string tag and the client components that have subscribed to the event and also the tag could react to the event.
I have seen an example of Angular before and I wonder how to implement it with Blazor with the correct pattern. I don't have any code regarding this. Is anyone have a good example?
This could be useful to have a centralized messaging system that is using SignalR or HttpClient or any other communication tool and inject the message to all components so they can work independently from their parents.
Aucun commentaire:
Enregistrer un commentaire