Added "search" architecture
[WebThing.git] / PluginManager.cs
index 551d5fd..56bfe55 100644 (file)
@@ -27,6 +27,8 @@ namespace bytex64.WebThing {
             Type[] types = a.GetTypes();
             foreach (Type t in types) {
                 if (t.IsSubclassOf(typeof(WebThingPlugin))) {
+                    if (Plugins.ContainsKey(t.FullName))
+                        continue;
                     WebThingPlugin p = (WebThingPlugin) a.CreateInstance(t.FullName, false, BindingFlags.ExactBinding, null, null, null, null);
                     p.Init(wt);
                     Plugins[t.FullName] = p;