/// <summary> /// Initializes a new instance of the <see cref="Project"/> class. /// </summary> /// <param name="projectId">The project identifier.</param> /// <param name="e">The <see cref="ProjectStartedEventArgs"/> instance containing the event data.</param> /// <param name="parentPropertyBag">The parent property bag (to check for inherited properties).</param> public Project(int projectId, ProjectStartedEventArgs e, PropertyBag parentPropertyBag) { Properties = new PropertyBag(parentPropertyBag); Id = projectId; TryUpdate(e); }
/// <summary> /// Initializes a new instance of the <see cref="PropertyBag"/> class. /// </summary> /// <param name="parent">The parent <see cref="PropertyBag"/>.</param> public PropertyBag(PropertyBag parent = null) { _parent = parent; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyBag"/> class. /// </summary> /// <param name="properties">The initial properties to set.</param> /// <param name="parent">The parent <see cref="PropertyBag"/> instance.</param> public PropertyBag(IEnumerable<KeyValuePair<string, string>> properties, PropertyBag parent = null) : this(parent) { AddProperties(properties); }
/// <summary> /// Initializes a new instance of the <see cref="Build"/> class. /// </summary> /// <param name="buildStartedEventArgs">The <see cref="BuildStartedEventArgs"/> instance containing the event data.</param> public Build(BuildStartedEventArgs buildStartedEventArgs) { StartTime = buildStartedEventArgs.Timestamp; Properties = new PropertyBag(buildStartedEventArgs.BuildEnvironment); }