/// <summary> /// Add a MessageHandler to the front. When a MessageHandler is at the front, /// this MessageHandlers may try to handle a received messages first. /// </summary> /// <param name="messageHandler">The MessageHandler to add.</param> public void AddToFront(MessageHandler messageHandler) { this.messageHandlers.Insert(0, messageHandler); }
// // - Methods - // /// <summary> /// Add a MessageHandler to the back. When a MessageHandler is at the back, /// all MessageHandlers in front may try to handle a received messages first. /// </summary> /// <param name="messageHandler">The MessageHandler to add.</param> public void AddToBack(MessageHandler messageHandler) { this.messageHandlers.Add(messageHandler); }