ICommonConfig.cs 500 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Aitex.Core.RT.ConfigCenter
  6. {
  7. public interface ICommonConfig
  8. {
  9. void Subscribe(string module, string key, Func<object> getter);
  10. object Poll(string key);
  11. Dictionary<string, object> PollConfig(IEnumerable<string> keys);
  12. string GetFileContent(string fileName);
  13. object GetConfig(string config);
  14. void SetConfig(string config, object value);
  15. }
  16. }