调整例程目录
大石头 authored at 2024-11-30 10:34:54
1.00 KiB
NewLife.Remoting
using System.ComponentModel;
using NewLife;
using NewLife.Configuration;
using NewLife.Remoting.Clients;

namespace Zero.Desktop;

[Config("ClientSetting")]
public class ClientSetting : Config<ClientSetting>, IClientSetting
{
    #region 属性
    /// <summary>语音提示。默认true</summary>
    [Description("语音提示。默认true")]
    public Boolean SpeechTip { get; set; } = true;

    /// <summary>证书</summary>
    [Description("证书")]
    public String Code { get; set; }

    /// <summary>密钥</summary>
    [Description("密钥")]
    public String Secret { get; set; }

    /// <summary>服务地址端口。默认为空,子网内自动发现</summary>
    [Description("服务地址端口。默认为空,子网内自动发现")]
    public String Server { get; set; } = "";
    #endregion

    #region 加载/保存
    protected override void OnLoaded()
    {
        if (Server.IsNullOrEmpty()) Server = "http://s.newlifex.com:6600";

        base.OnLoaded();
    }
    #endregion
}