Esempio n. 1
0
        public virtual IMemberAccountData GetMember(string username)
        {
            String logMethodName = ".GetMember(string username) - ";

            _log.Debug(logMethodName + " - Begin Method");


            MembershipUser     user       = null;
            IMemberAccountData returnData = null;

            try
            {
                user = GetUser(username);
            }
            catch (Exception ex)
            {
                throw new SecurityAdapterException("An error has occured in the .NET Membership provider while calling Membership.GetUser(username)", ex);
            }

            if (user != null)
            {
                returnData = user.ToMemberAccountData();
            }

            _log.Debug(logMethodName + " - End Method");

            return(returnData);
        }