/// <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); }
/// <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; }
/// <summary> /// Constructor /// </summary> /// <param name="config"></param> /// <param name="attr"></param> public XyzAsyncCollector(XyzConfiguration config, XyzAttribute attr) : this(config, attr, System.Console.Out) { }