Esempio n. 1
0
 internal void RemoveSystem(IExcuteSystem system)
 {
     if (_systems.Contains(system))
     {
         _systems.Remove(system);
     }
 }
Esempio n. 2
0
 internal void AddSystem(IExcuteSystem system)
 {
     if (!_systems.Contains(system))
     {
         _systems.Add(system);
     }
 }
Esempio n. 3
0
 internal void RemoveSystem(IExcuteSystem system)
 {
     using (new LockWait(ref _lock))
     {
         if (_systems.Contains(system))
         {
             _systems.Remove(system);
         }
     }
 }
Esempio n. 4
0
 internal void AddSystem(IExcuteSystem system)
 {
     using (new LockWait(ref _lock))
     {
         if (!_systems.Contains(system))
         {
             _systems.Add(system);
         }
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 解除注册系统
 /// </summary>
 /// <param name="system"></param>
 public void UnSubscribeSystem(IExcuteSystem system)
 {
     _systems.RemoveSystem(system);
 }
Esempio n. 6
0
 /// <summary>
 /// 注册系统
 /// </summary>
 /// <param name="system"></param>
 public void SubscribeSystem(IExcuteSystem system)
 {
     _systems.AddSystem(system);
 }