IActionHandler FindActionHandler(ActionMessage message) { return(host.GetAction(message) ?? target as IActionHandler); }
/// <summary> /// Determines whethyer the target can handle the specified action. /// </summary> /// <param name="message">The action details.</param> /// <returns></returns> public bool Handles(IRoutedMessage message) { var actionMessage = message as ActionMessage; return(actionMessage != null && _host.GetAction(actionMessage) != null); }