Are there any performance issues with using this approach for Pub/Sub events?
The idea is to wrap a message in a generic PubSubEvent so you can write the message like this:
The idea is to wrap a message in a generic PubSubEvent so you can write the message like this:
// Create the Event Message
public class TickerSymbolSelectedMessage
{
public string StockSymbol { get; set; }
}
And the you can send it like this:// Broadcast Events
EventSystem.Publish<TickerSymbolSelectedMessage>(
new TickerSymbolSelectedMessage{ StockSymbol = “STOCK0”});
I like this and it remind me of the messagebus in RxUI