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