/// <summary> /// Registers message router handler. /// </summary> /// <param name="configuration"> /// The configuration. /// </param> /// <param name="messageRouterHandler"> /// The chromely message router. /// </param> /// <returns> /// The <see cref="ChromelyConfiguration"/> object. /// </returns> public static ChromelyConfiguration RegisterMessageRouterHandler(this ChromelyConfiguration configuration, ChromelyMessageRouter messageRouterHandler) { if (messageRouterHandler != null) { IoC.RegisterInstance(typeof(ChromelyMessageRouter), messageRouterHandler.Key, messageRouterHandler); } return(configuration); }