ICommonData.cs 736 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Collections.Concurrent;
  6. using Aitex.Core.Util;
  7. namespace Aitex.Core.RT.DataCenter
  8. {
  9. public interface ICommonData
  10. {
  11. void Subscribe<T>(T instance, string keyPrefix = null) where T : class;
  12. void Subscribe(string key, Func<object> getter, SubscriptionAttribute.FLAG flag);
  13. void Subscribe(string moduleKey, DataItem<object> dataItem, SubscriptionAttribute.FLAG flag);
  14. object Poll(string key);
  15. Dictionary<string, object> PollData(IEnumerable<string> keys);
  16. void Traverse(object instance, string keyPrefix);
  17. SortedDictionary<string, Func<object>> GetDBRecorderList();
  18. }
  19. }