예제 #1
0
 IActionHandler FindActionHandler(ActionMessage message)
 {
     return(host.GetAction(message) ?? target as IActionHandler);
 }
예제 #2
0
        /// <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);
        }