/******************************************************************************* * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential * 类的信息: * 1.程序名称:DKIBOSSPRDProxy.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 DKIBOSSPRDProxy : ServiceProxyBase { #region 构造函数 /// /// 构造函数 /// private DKIBOSSPRDProxy() : base("DKIBOSSPRDService") { } #endregion #region 单实例 /// /// 系统登录模块服务代理 /// private static DKIBOSSPRDProxy _service = null; /// /// 系统登录模块服务代理 /// public static DKIBOSSPRDProxy Service { get { if (_service == null) { return new DKIBOSSPRDProxy(); } return _service; } } #endregion #region 登录系统 /// /// 登录系统 /// /// public LoginResultEntity DoLogin(LoginRequestEntity requestEntity) { LoginResultEntity result = this.Invoker.Invoke( proxy => proxy.DoLogin(requestEntity)); return result; } public LoginResultEntity DoLoginRefresh(LoginRequestEntity requestEntity) { LoginResultEntity result = this.Invoker.Invoke( proxy => proxy.DoLoginRefresh(requestEntity)); return result; } /// /// 登出系统 /// /// /// public void Logout(int userID) { this.Invoker.Invoke(proxy => proxy.Logout(userID)); } /// /// 服务连接测试 /// /// public bool GetServiceState() { bool result = this.Invoker.Invoke(proxy => proxy.GetServiceState()); return result; } /// /// 检验客户端是否需要更新 /// /// /// public NeedUpgradeResultEntity IsNeedUpgrade(string version) { NeedUpgradeResultEntity result = this.Invoker.Invoke( proxy => proxy.IsNeedUpgrade(version)); return result; } #endregion } }