平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PluginSettingsOptions.cs 658 B

4 months ago
1234567891011121314151617181920212223242526
  1. using Furion.ConfigurableOptions;
  2. namespace SafeCampus.Plugin.Core
  3. {
  4. /// <summary>
  5. /// 插件配置选项
  6. /// </summary>
  7. public class PluginSettingsOptions : IConfigurableOptions
  8. {
  9. /// <summary>
  10. /// 是否开启SignalR
  11. /// </summary>
  12. public bool UseSignalR { get; set; } = true;
  13. /// <summary>
  14. /// 是否开启Mqtt
  15. /// </summary>
  16. public bool UseMqtt { get; set; } = false;
  17. /// <summary>
  18. /// 默认通知类型
  19. /// SignalR/Mqtt
  20. /// </summary>
  21. public NoticeComponent NoticeComponent { get; set; } = NoticeComponent.Signalr;
  22. }
  23. }