70 lines
1.5 KiB
C#
70 lines
1.5 KiB
C#
using Api.Framework.SDK;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Api.Framework.Config
|
|
{
|
|
/// <summary>
|
|
/// 系统接口配置
|
|
/// </summary>
|
|
[Config(Name = "系统.接口配置")]
|
|
public class ServerConfig
|
|
{
|
|
/// <summary>
|
|
/// 域名
|
|
/// </summary>
|
|
public string Domain { get; set; }
|
|
|
|
/// <summary>
|
|
/// 服务器IP
|
|
/// </summary>
|
|
public string Host { get; set; }
|
|
|
|
/// <summary>
|
|
/// 端口号
|
|
/// </summary>
|
|
public int Port { get; set; }
|
|
|
|
/// <summary>
|
|
/// Web服务器是否开启
|
|
/// </summary>
|
|
public bool IsOpen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Socket端口
|
|
/// </summary>
|
|
[Browsable(false)]
|
|
public int SocketPort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 通信秘钥
|
|
/// </summary>
|
|
[Browsable(false)]
|
|
public string SocketPassword { get; set; }
|
|
|
|
/// <summary>
|
|
/// Socket服务器是否打开
|
|
/// </summary>
|
|
[Browsable(false)]
|
|
public bool SocketIsOpen { get; set; }
|
|
|
|
|
|
public ServerConfig()
|
|
{
|
|
this.SocketPort = 443;
|
|
this.SocketPassword = "123456789123456789";
|
|
this.SocketIsOpen = false;
|
|
|
|
this.Domain = string.Empty;
|
|
this.IsOpen = false;
|
|
this.Host = "*";
|
|
this.Port = 80;
|
|
}
|
|
}
|
|
|
|
}
|