Sic.Framework/MECF.Framework.Common/Aitex/Core/RT/DataCenter/ICommonData.cs

24 lines
613 B
C#

using System;
using System.Collections.Generic;
using Aitex.Core.Util;
namespace Aitex.Core.RT.DataCenter
{
public interface ICommonData
{
void Subscribe<T>(T instance, string keyPrefix = null) where T : class;
void Subscribe(string key, Func<object> getter, SubscriptionAttribute.FLAG flag);
void Subscribe(string moduleKey, DataItem<object> dataItem, SubscriptionAttribute.FLAG flag);
object Poll(string key);
Dictionary<string, object> PollData(IEnumerable<string> keys);
void Traverse(object instance, string keyPrefix);
SortedDictionary<string, Func<object>> GetDBRecorderList();
}
}