public static PluginItemCollection GetEmptyItems() { PluginItemCollection plugins = OpenIdPlugins.Instance().GetPlugins(); PluginItemCollection result; if (plugins == null || plugins.Count == 0) { result = null; } else { IList <string> configedTypes = OpenIdProvider.Instance().GetConfigedTypes(); if (configedTypes != null && configedTypes.Count > 0) { foreach (string current in configedTypes) { if (plugins.ContainsKey(current.ToLower())) { plugins.Remove(current.ToLower()); } } } result = plugins; } return(result); }
public static PluginItemCollection GetConfigedItems() { IList <string> configedTypes = OpenIdProvider.Instance().GetConfigedTypes(); PluginItemCollection result; if (configedTypes == null || configedTypes.Count == 0) { result = null; } else { PluginItemCollection plugins = OpenIdPlugins.Instance().GetPlugins(); if (plugins != null && plugins.Count > 0) { PluginItem[] items = plugins.Items; PluginItem[] array = items; for (int i = 0; i < array.Length; i++) { PluginItem pluginItem = array[i]; if (!configedTypes.Contains(pluginItem.FullName.ToLower())) { plugins.Remove(pluginItem.FullName.ToLower()); } } } result = plugins; } return(result); }
public static PluginItemCollection GetEmptyItems() { PluginItemCollection plugins = OpenIdPlugins.Instance().GetPlugins(); if ((plugins == null) || (plugins.Count == 0)) { return(null); } IList <string> configedTypes = OpenIdProvider.Instance().GetConfigedTypes(); if ((configedTypes != null) && (configedTypes.Count > 0)) { foreach (string str in configedTypes) { if (plugins.ContainsKey(str.ToLower())) { plugins.Remove(str.ToLower()); } } } return(plugins); }
public static PluginItemCollection GetConfigedItems() { IList <string> configedTypes = OpenIdProvider.Instance().GetConfigedTypes(); if ((configedTypes == null) || (configedTypes.Count == 0)) { return(null); } PluginItemCollection plugins = OpenIdPlugins.Instance().GetPlugins(); if ((plugins != null) && (plugins.Count > 0)) { PluginItem[] items = plugins.Items; foreach (PluginItem item in items) { if (!configedTypes.Contains(item.FullName.ToLower())) { plugins.Remove(item.FullName.ToLower()); } } } return(plugins); }
static OpenIdProvider() { OpenIdProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.ControlPanel.Data.OpenIdData,Hidistro.ControlPanel.Data") as OpenIdProvider); }
public static void SaveSettings(OpenIdSettingsInfo settings) { OpenIdProvider.Instance().SaveSettings(settings); }
public static OpenIdSettingsInfo GetOpenIdSettings(string openIdType) { return(OpenIdProvider.Instance().GetOpenIdSettings(openIdType)); }
public static void DeleteSettings(string openIdType) { OpenIdProvider.Instance().DeleteSettings(openIdType); }