Esempio n. 1
0
        /// <summary>
        /// Combine <see cref="XyzItem"/> with <see cref="XyzConfiguration"/> and <see cref="XyzAttribute"/>
        /// </summary>
        /// <param name="item"></param>
        /// <param name="config"></param>
        /// <param name="attr"></param>
        /// <returns></returns>
        private static XyzItem MergeMessageProperties(XyzItem item, XyzConfiguration config, XyzAttribute attr)
        {
            var result = new XyzItem
            {
                Text = Utils.MergeValueForProperty(item.Text, attr.Text),
            };


            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="config"></param>
 /// <param name="attr"></param>
 public XyzAsyncCollector(XyzConfiguration config, XyzAttribute attr, TextWriter output)
 {
     this.config = config;
     this.attr   = attr;
     this.output = output;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="config"></param>
 /// <param name="attr"></param>
 public XyzAsyncCollector(XyzConfiguration config, XyzAttribute attr) : this(config, attr, System.Console.Out)
 {
 }