Пример #1
0
        /// <summary>
        /// The serialize.
        /// </summary>
        /// <param name="message">
        /// The message.
        /// </param>
        /// <returns>
        /// The <see cref="bool"/>.
        /// </returns>
        internal bool Serialize(object message)
        {
            try
            {
                if (message != null)
                {
                    XmlStreamer.Serialize(message, filePath, null);
                    return(true);
                }
            }
            catch (Exception exception)
            {
                FomsLogger.WriteError(exception, null);
            }

            return(false);
        }