/// <summary> /// 注册领域事件 /// </summary> /// <param name="unityContainer"></param> public static void RegisterDomainEvent(IUnityContainer unityContainer) { DomainEvents.RegisterStatic <ScheduleJobSaveSuccessedEvent>(new ScheduleJobSaveSuccessedEventHandler(unityContainer.Resolve <IJobsQueue>()).Handle); DomainEvents.RegisterStatic <ScheduleJobRemovedEvent>(new ScheduleJobRemovedEventHandler(unityContainer.Resolve <IJobsQueue>()).Handle); }