From: <br...@us...> - 2008-06-10 21:33:04
|
Revision: 241 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=241&view=rev Author: brus07 Date: 2008-06-10 14:33:12 -0700 (Tue, 10 Jun 2008) Log Message: ----------- Deleted commented block with old class Modified Paths: -------------- ACMServer/trunk/tasks/Load_from_dll/taskDll/PluginLoader.cs Property Changed: ---------------- ACMServer/trunk/tasks/Load_from_dll/ Property changes on: ACMServer/trunk/tasks/Load_from_dll ___________________________________________________________________ Name: svn:ignore - *.suo + *.suo Ankh.Load Modified: ACMServer/trunk/tasks/Load_from_dll/taskDll/PluginLoader.cs =================================================================== --- ACMServer/trunk/tasks/Load_from_dll/taskDll/PluginLoader.cs 2008-06-10 21:29:39 UTC (rev 240) +++ ACMServer/trunk/tasks/Load_from_dll/taskDll/PluginLoader.cs 2008-06-10 21:33:12 UTC (rev 241) @@ -58,102 +58,4 @@ } } } - - //public class PluginLoader - //{ - // List<ICreaterPlugin> _plugins = new List<ICreaterPlugin>(); - - // /// <summary> - // /// returns a list of all plugins loaded. - // /// </summary> - // /// <value>The plugins.</value> - // public List<ICreaterPlugin> Plugins - // { - // get { return _plugins; } - // } - // /// <summary> - // /// Loads all plugins. - // /// </summary> - // public void Load() - // { - // _plugins.Clear(); - // try - // { - // if (System.IO.Directory.Exists("Dll")) - // { - // string[] strFiles = System.IO.Directory.GetFiles("Dll", "*.dll"); - // foreach (string strFile in strFiles) - // LoadPlugin(strFile); - // } - // } - // catch (Exception ex) - // { - // throw ex; - // } - // } - // /// <summary> - // /// Loads the plugin. - // /// </summary> - // /// <param name="strFile">The STR file.</param> - // void LoadPlugin(string strFile) - // { - // Type[] foundInterfaces = null; - - // try - // { - // Assembly assem = Assembly.LoadFrom(strFile); - // if (assem != null) - // { - // Type[] types = assem.GetExportedTypes(); - - // foreach (Type t in types) - // { - // try - // { - // if (t.IsClass) - // { - // if (t.IsAbstract) continue; - - // Object newObj = null; - // ICreaterPlugin plugin = null; - // TypeFilter myFilter2 = new TypeFilter(MyInterfaceFilter); - // try - // { - // foundInterfaces = t.FindInterfaces(myFilter2, "BasePlug.ICreaterPlugin"); - // if (foundInterfaces.Length > 0) - // { - // newObj = (object)Activator.CreateInstance(t); - // plugin = (ICreaterPlugin)newObj; - // _plugins.Add(plugin); - // } - // } - // catch (System.Reflection.TargetInvocationException ex) - // { - // throw ex; - // } - // catch (Exception ex) - // { - // throw ex; - // } - // } - // } - // catch (System.NullReferenceException ex) - // { - // throw ex; - // } - // } - // } - // } - // catch (Exception ex) - // { - // throw ex; - // } - // } - - // bool MyInterfaceFilter(Type typeObj, Object criteriaObj) - // { - // return (typeObj.ToString().Equals(criteriaObj.ToString())); - // } - - //} } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |