Exemple #1
0
        } // ServiceProvider

        public static UiContentProviderFriendlyNames FromXmlConfiguration(FriendlyNames friendlyNames, IEnumerable <string> uiCultures)
        {
            if (friendlyNames == null)
            {
                throw new ArgumentNullException();
            }
            if (uiCultures == null)
            {
                throw new ArgumentNullException();
            }

            var result = new UiContentProviderFriendlyNames();

            result.ServiceProvider = FromSpFriendlyNames(friendlyNames.Providers, uiCultures);

            return(result);
        } // FromXmlConfiguration
Exemple #2
0
        } // Bootstrap

        public static UiContentProvider FromXmlConfiguration(IpTvProviderData contentProvider, IEnumerable <string> uiCultures)
        {
            if (contentProvider == null)
            {
                throw new ArgumentNullException();
            }
            if (uiCultures == null)
            {
                throw new ArgumentNullException();
            }

            var result = new UiContentProvider();

            result.Identification = UiContentProviderIdentification.FromXmlConfiguration(contentProvider.Identification, uiCultures);
            result.FriendlyNames  = UiContentProviderFriendlyNames.FromXmlConfiguration(contentProvider.FriendlyNames, uiCultures);
            result.Bootstrap      = contentProvider.Bootstrap;

            return(result);
        } // FromXmlConfiguration