/******************************************************************************* * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential * 类的信息: * 1.程序名称:ProxySettings.cs * 2.功能描述:服务代理设定 * 编辑履历: * 作者 日期 版本 修改内容 * 陈晓野 2014/08/13 1.00 新建 *******************************************************************************/ using Dongke.IBOSS.PRD.WCF.DataModels; using Dongke.IBOSS.PRD.WCF.Proxys.DKIBOSSPRDService; using Dongke.IBOSS.PRD.WCF.Proxys.ServiceProxy; namespace Dongke.IBOSS.PRD.WCF.Proxys { /// /// 服务代理设定 /// public class ProxySettings { /// /// 服务访问验证信息 /// public static LoginRequestEntity LoginUserInfo { get; set; } /// /// 服务名 /// public static string ServiceName { get { return "DKService"; } } /// /// IP /// public static string IP { get; private set; } /// /// 端口 /// public static string Port { get; private set; } /// /// 服务名 /// public static string IPPostName { get; set; } /// /// 重设IP和端口 /// /// /// /// public static bool ResetRemoteAddress(string ip, string port) { if(string.IsNullOrWhiteSpace(ip) || string.IsNullOrWhiteSpace(port)) { return false; } IP = ip; Port = port; ChannelFactories.Clear(); return true; } } }