Binboo.Jira.Configuration.JiraConfig.ResolveUser C# (CSharp) Метод

ResolveUser() публичный Метод

public ResolveUser ( string userName, string IMUserName ) : string
userName string
IMUserName string
Результат string
        public string ResolveUser(string userName, string IMUserName)
        {
            if (userName.ToLower() == "myself")
            {
                userName = IMUserToIssueTrackerUser(IMUserName);
                if (String.IsNullOrEmpty(userName))
                {
                    throw new ArgumentException(String.Format("Unable to map skype user name '{0}' to jira user name. Check configuration file.", IMUserName));
                }
            }
            else
            {
                string mappedUser = UserNameForAlias(userName);
                if (!String.IsNullOrEmpty(mappedUser)) return mappedUser;
            }

            return userName;
        }