Пример #1
0
        /// <summary>
        /// Creates the XML product.
        /// </summary>
        /// <param name="filename">The filename.</param>
        /// <param name="timeStamp">The time stamp.</param>
        /// <param name="content">The content.</param>
        /// <param name="receivedAt">The received at.</param>
        /// <param name="seq">The seq.</param>
        /// <param name="source">The source.</param>
        /// <returns>XmlProduct.</returns>
        public static XmlProduct Create(string filename, DateTimeOffset timeStamp, TextContent content, DateTimeOffset receivedAt, int seq, string source)
        {
            var product = new XmlProduct
            {
                Filename   = filename,
                TimeStamp  = timeStamp,
                ReceivedAt = receivedAt,
                Content    = content,
                Source     = source
            };

            return(product);
        }
Пример #2
0
        /// <summary>
        /// Creates the XML product.
        /// </summary>
        /// <param name="filename">The filename.</param>
        /// <param name="timeStamp">The time stamp.</param>
        /// <param name="content">The content.</param>
        /// <param name="receivedAt">The received at.</param>
        /// <param name="seq">The seq.</param>
        /// <param name="source">The source.</param>
        /// <returns>XmlProduct.</returns>
        public static XmlProduct Create(string filename, DateTimeOffset timeStamp, TextContent content, DateTimeOffset receivedAt, int seq, string source)
        {
            var product = new XmlProduct
            {
                Filename = filename,
                TimeStamp = timeStamp,
                ReceivedAt = receivedAt,
                Content = content,
                Source = source
            };

            return product;
        }