Beispiel #1
0
 /// <summary>
 /// Adds a Plugin Channel Message Handler.
 /// Returns true if it is succesfully added.
 /// Returns false if something went wrong.
 /// </summary>
 /// <param name="message">The Channel Message Handler</param>
 /// <param name="channel">The Channel</param>
 /// <returns></returns>
 public static bool RegisterPluginMessage(PluginChannel.PluginMessage message, string channel)
 {
     if (MessageFactory != null)
     {
         return(MessageFactory.AddMessage(message, channel));
     }
     return(false);
 }
Beispiel #2
0
 public bool AddMessage(PluginMessage pm, string channel)
 {
     if (Messages.ContainsKey(channel))
     {
         return(false);
     }
     Messages.Add(channel, pm);
     return(true);
 }
Beispiel #3
0
 public bool AddMessage(PluginMessage pm, string channel)
 {
     if (Messages.ContainsKey(channel)) return false;
     Messages.Add(channel, pm);
     return true;
 }