/// <summary> /// 根据登陆帐号实例化授权用户 /// </summary> /// <param name="loginName"></param> /// <returns></returns> public static AuthenUser GetAuthenUserByLoginName(string loginName) { if (AuthenUser.OnlineAuthenUserList.ContainsKey(loginName)) { return(AuthenUser.OnlineAuthenUserList[loginName] as AuthenUser); } ESB.UddiService uddiService = new UddiService(); Personal person = uddiService.GetPersonByLoginName(loginName); if (person == null) { return(null); } return(PushAuthenUserOnline(GetAuthenUser(person))); }
/// <summary> /// 根据登陆帐号实例化授权用户 /// </summary> /// <param name="loginName"></param> /// <returns></returns> public static AuthenUser GetAuthenUserByLoginName(string loginName) { if(AuthenUser.OnlineAuthenUserList.ContainsKey(loginName)) return AuthenUser.OnlineAuthenUserList[loginName] as AuthenUser; ESB.UddiService uddiService = new UddiService(); Personal person = uddiService.GetPersonByLoginName(loginName); if (person == null) return null; return PushAuthenUserOnline(GetAuthenUser(person)); }