Пример #1
0
 /// <summary>
 ///   Returns the *last* ActionCall in this
 ///   BehaviorChain.  May be null.
 /// </summary>
 /// <returns></returns>
 public ActionCall LastCall()
 {
     return Calls.LastOrDefault();
 }
Пример #2
0
        /// <summary>
        /// Finds the output model type of the *last*
        /// ActionCall in this BehaviorChain.  May be null
        /// </summary>
        /// <returns></returns>
        public Type ActionOutputType()
        {
            var call = Calls.LastOrDefault();

            return(call == null ? null : call.OutputType());
        }