Configs.cs 808 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace WCS.Core
  5. {
  6. public static class Configs
  7. {
  8. /// <summary>
  9. /// 设置协议通讯代理类的基类,继承至DataObject,IBaseType
  10. /// </summary>
  11. public static Type? ProtocolProxyBaseType { get; set; }
  12. public static Encoding StringEncoding { get; set; }
  13. public static string DebugRedisUrl { get; set; }
  14. public static event Action PublishEvent;
  15. internal static void Publish()
  16. {
  17. PublishEvent?.Invoke();
  18. }
  19. public static Action<string, string> UploadException { get; set; }
  20. public static IPLCAccessorCreater? PLCAccessorCreater { get; set; }
  21. public static Action<IEnumerable<LogInfo>> OnLog;
  22. }
  23. }