示例#1
0
文件: Process.cs 项目: dwnz/myos
 public void SubscribeToEvent <T>(string key, Action <T> action)
     where T : EventMessageBase
 {
     EventSubscription.Subscribe(key, action);
 }
示例#2
0
文件: Process.cs 项目: dwnz/myos
 public void PublishEvent <T>(string key, T message)
     where T : EventMessageBase
 {
     EventSubscription.Publish(key, message);
 }