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
{
///
/// 系统接口配置
///
[Config(Name = "系统.接口配置")]
public class ServerConfig
{
///
/// 域名
///
public string Domain { get; set; }
///
/// 服务器IP
///
public string Host { get; set; }
///
/// 端口号
///
public int Port { get; set; }
///
/// Web服务器是否开启
///
public bool IsOpen { get; set; }
///
/// Socket端口
///
[Browsable(false)]
public int SocketPort { get; set; }
///
/// 通信秘钥
///
[Browsable(false)]
public string SocketPassword { get; set; }
///
/// Socket服务器是否打开
///
[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;
}
}
}