public void SubscribeToEvent <T>(string key, Action <T> action) where T : EventMessageBase { EventSubscription.Subscribe(key, action); }
public void PublishEvent <T>(string key, T message) where T : EventMessageBase { EventSubscription.Publish(key, message); }