public static void GuiLogMessage(GuiLogNotificationEventHandler del, IPlugin plugin, GuiLogEventArgs args) { if (del == null) { return; } Delegate[] delegates = del.GetInvocationList(); if (AsynchronousGuiLogMessage) { AsyncCallback cleanUp = delegate(IAsyncResult asyncResult) { asyncResult.AsyncWaitHandle.Close(); }; foreach (GuiLogNotificationEventHandler sink in delegates) { sink.BeginInvoke(plugin, args, cleanUp, null); } } else { foreach (GuiLogNotificationEventHandler sink in delegates) { sink.Invoke(plugin, args); } } }
public static void GuiLogMessage(GuiLogNotificationEventHandler del, IPlugin plugin, string message, NotificationLevel level) { GuiLogMessage(del, plugin, new GuiLogEventArgs(message, plugin, level)); }
public static void GuiLogMessage(GuiLogNotificationEventHandler handler, IPlugin plugin, string message) { GuiLogMessage(handler, plugin, new GuiLogEventArgs(message, plugin, NotificationLevel.Debug)); }