Files
simapi-net/Configurations/SimApiSynapseOptions.cs
T

25 lines
873 B
C#
Raw Normal View History

2024-04-16 06:57:56 +08:00
namespace SimApi.Configurations;
2023-10-20 12:33:18 +08:00
public class SimApiSynapseOptions
{
2024-07-26 05:03:28 +08:00
/// <summary>
/// Mqtt服务器的Websocket地址
/// </summary>
2024-07-26 08:11:21 +08:00
public string? Websocket { get; set; }
public string? Username { get; set; }
public string? Password { get; set; }
public string? SysName { get; set; }
public string? AppName { get; set; }
public string? AppId { get; set; }
2023-10-20 12:33:18 +08:00
public int RpcTimeout { get; set; } = 3;
2024-07-27 01:33:17 +08:00
/// <summary>
/// Event是否使用负载均衡
/// 也就是订阅$queue主题,消息会分发给不同的AppId
/// 如果false,多个AppId都可以同时收到消息
/// </summary>
public bool EventLoadBalancing { get; set; } = false;
2024-07-26 08:11:21 +08:00
public bool EnableConfigStore { get; set; } = true;
2023-10-20 12:33:18 +08:00
public bool DisableEventClient { get; set; } = false;
public bool DisableRpcClient { get; set; } = false;
}