/// <summary> /// 构造函数。 /// </summary> public CtrlSysEvents() { InitializeComponent(); this.CreateHandle(); GlobalMessageBus.SubscribeNewSystemEventGenerated(OnNewSystemEventGenerated); }
public PersistenceProcessor() { this.AddDisposable(GlobalMessageBus.SubscribeNewSystemEventGenerated(OnNewSystemEventGenerated)); this.AddDisposable(GlobalMessageBus.SubscribeOperationLogChanged(OnNewOperLogGenerated)); }