/// <summary>
        /// Gets the object from the pipe message body.
        /// </summary>
        /// <typeparam name="T">The type to which the message body will be deserialized.</typeparam>
        /// <param name="source">The source PipeMessage.</param>
        /// <returns>The object from the pipe message body.</returns>
        public static T ToBodyObject <T>(this PipeMessage source)
        {
            if (source == null)
            {
                return(default(T));
            }

            return(source.GetBody <T>());
        }
        /// <summary>
        /// Gets the object from the pipe message body.
        /// </summary>
        /// <param name="source">The source PipeMessage.</param>
        /// <returns>The object from the pipe message body.</returns>
        public static object ToBodyObject(this PipeMessage source)
        {
            if (source == null)
            {
                return(null);
            }

            return(source.GetBody());
        }