public void RegisterMessage(MessageAction message, Classes.IMessageHandler handler) { registeredHandlers.Add(new MessageHandler(message, handler)); }
public MessageHandler(MessageAction type, Classes.IMessageHandler handler) { Type = type; Handler = handler; }