1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Aitex.Core.RT.Event;
- using Aitex.Core.Util;
- using MECF.Framework.Common.Equipment;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Venus_RT.Modules
- {
- internal class EntityErrorRaiseTrigger
- {
- private static EntityErrorRaiseTrigger instance;
- //线程锁
- private static readonly object _Object = new object();
- private EntityErrorRaiseTrigger()
- {
-
- }
- public static EntityErrorRaiseTrigger GetInstance()
- {
- lock (_Object)
- {
- if (instance == null)
- {
- instance = new EntityErrorRaiseTrigger();
- }
- }
- return instance;
- }
- public event Action<ModuleName> EntityErrorRaiseChangedEvent;
- public void OnEntityErrorRaiseChanged(ModuleName moduleName)
- {
- EntityErrorRaiseChangedEvent?.Invoke(moduleName);
- }
- }
- }
|