public AdminServer()
        {
            jss          = new JavaScriptSerializer();
            messageCoder = new MessageCoder();
            string log4netConfigFilePath = AppDomain.CurrentDomain.BaseDirectory + "log4net.config";

            XmlConfigurator.Configure(new FileInfo(log4netConfigFilePath));
        }
예제 #2
0
        public AdminServer()
        {
            jss          = new JavaScriptSerializer();
            messageCoder = new MessageCoder();
            string log4netConfigFilePath = AppDomain.CurrentDomain.BaseDirectory + "log4net.config";

            XmlConfigurator.Configure(new FileInfo(log4netConfigFilePath));

            FtpServerInfo ftpServerInfo = new FtpServerInfo();

            ftpServerInfo.serverId    = "QQKK";
            ftpServerInfo.description = "陳大文";
            ftpServerList.Add(ftpServerInfo.serverId, ftpServerInfo);

            ftpServerInfo             = new FtpServerInfo();
            ftpServerInfo.serverId    = "4466";
            ftpServerInfo.description = "張三_李四";
            ftpServerList.Add(ftpServerInfo.serverId, ftpServerInfo);
        }