示例#1
0
文件: AuthenUser.cs 项目: rebider/soa
    /// <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)));
    }
示例#2
0
文件: AuthenUser.cs 项目: vebin/soa
    /// <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));
    }