Configs.cs 756 B

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