Beispiel #1
0
        private FeedUri ResolveAlias(string aliasName)
        {
            AppEntry appEntry;

            AddAlias.GetAppAlias(AppList, aliasName, out appEntry);
            if (appEntry == null)
            {
                throw new UriFormatException(string.Format(Resources.AliasNotFound, aliasName));
            }
            return(appEntry.InterfaceUri);
        }
Beispiel #2
0
        private static FeedUri ResolveAlias(string aliasName)
        {
            var appList = AppList.LoadSafe();

            AppEntry appEntry;

            AddAlias.GetAppAlias(appList, aliasName, out appEntry);
            if (appEntry?.InterfaceUri == null)
            {
                throw new UriFormatException(string.Format(Resources.AliasNotFound, aliasName));
            }
            return(appEntry.InterfaceUri);
        }