Ejemplo n.º 1
0
 public static void Subscribe <T>(Action <T> callback) where T : IHotEvent
 {
     EventNotifier <T> .Add(callback);
 }
Ejemplo n.º 2
0
 public static void Notify <T>(T hotEvent) where T : IHotEvent
 {
     EventNotifier <T> .Notify(hotEvent);
 }
Ejemplo n.º 3
0
 public static void Clear <T>() where T : IHotEvent
 {
     EventNotifier <T> .Clear();
 }
Ejemplo n.º 4
0
 public static void Unsubscribe <T>(Action <T> callback) where T : IHotEvent
 {
     EventNotifier <T> .Remove(callback);
 }