/// <summary> /// Adds "Event" node /// </summary> /// <param name="eventName"></param> /// <param name="builder"></param> /// <returns></returns> public PropertyNodeBuilder Event(string eventName, Action <EventNodeBuilder> builder) { var node = new EventNodeBuilder(); builder?.Invoke(node); if (eventName != null) { node.Equal("name", eventName); } Element.Add(node.Element); return(this); }
/// <summary> /// Adds "Event" node /// </summary> /// <param name="eventName"></param> /// <param name="builder"></param> /// <returns></returns> public LogNodeBuilder Event(string eventName, Action <EventNodeBuilder> builder) { var node = new EventNodeBuilder(); builder?.Invoke(node); var elem = node.Build(); if (eventName != null) { node.Equal("name", eventName); } Element.Add(elem); return(this); }