/// <summary> /// Fetches the name space list object. /// </summary> /// <param name="pluginSource">The plugin source.</param> /// <returns></returns> public NamespaceList FetchNamespaceListObject(PluginSource pluginSource) { // BUG 9500 - 2013.05.31 - TWR : added check to avoid nulling AssemblyLocation/Name in tests if (string.IsNullOrEmpty(pluginSource.AssemblyLocation)) { pluginSource = new PluginSources().Get(pluginSource.ResourceID.ToString(), Guid.Empty, Guid.Empty); } var interrogatePlugin = ReadNamespaces(pluginSource.AssemblyLocation, pluginSource.AssemblyName); var namespacelist = new NamespaceList(); namespacelist.AddRange(interrogatePlugin); return(namespacelist); }
/// <summary> /// Fetches the name space list object. /// </summary> /// <param name="pluginSource">The plugin source.</param> /// <returns></returns> public NamespaceList FetchNamespaceListObject(PluginSource pluginSource) { // BUG 9500 - 2013.05.31 - TWR : added check to avoid nulling AssemblyLocation/Name in tests if(string.IsNullOrEmpty(pluginSource.AssemblyLocation)) { pluginSource = new PluginSources().Get(pluginSource.ResourceID.ToString(), Guid.Empty, Guid.Empty); } var interrogatePlugin = ReadNamespaces(pluginSource.AssemblyLocation, pluginSource.AssemblyName); var namespacelist = new NamespaceList(); namespacelist.AddRange(interrogatePlugin); return namespacelist; }