}\r
catch (Exception ex)\r
{\r
- Logger.Log("ERROR in Radegast Plugin: " + loadfilename + " because " + ex.Message + " " + ex.StackTrace, Helpers.LogLevel.Debug);\r
+ Logger.Log("ERROR in Radegast Plugin: " + loadfilename + " because " + ex, Helpers.LogLevel.Debug);\r
}\r
}\r
}\r
+ // run the StartPlugin\r
+ lock (PluginsLoaded)\r
+ {\r
+ foreach (IRadegastPlugin plug in PluginsLoaded)\r
+ {\r
+ try\r
+ {\r
+ plug.StartPlugin(this); \r
+ }\r
+ catch (Exception ex)\r
+ {\r
+ Logger.Log("ERROR in Starting Radegast Plugin: " + plug + " because " + ex, Helpers.LogLevel.Debug);\r
+ }\r
+ }\r
+ }\r
+\r
}\r
\r
public void LoadAssembly(string loadfilename, Assembly assembly)\r
try\r
{\r
IRadegastPlugin plug = (IRadegastPlugin)ci.Invoke(new object[0]);\r
- plug.StartPlugin(this);\r
lock (PluginsLoaded) PluginsLoaded.Add(plug);\r
break;\r
}\r
catch (Exception ex)\r
{\r
- Logger.Log("ERROR Constructing Radegast Plugin: " + loadfilename + " because " + ex.Message, Helpers.LogLevel.Debug);\r
+ Logger.Log("ERROR Constructing Radegast Plugin: " + loadfilename + " because " + ex, Helpers.LogLevel.Debug);\r
throw ex;\r
}\r
}\r