Esempio n. 1
0
        /// <summary>
        /// Update an existing detail timeline record.
        /// </summary>
        /// <param name="id">The ID of the existing timeline record.</param>
        /// <param name="data">Additional data for the timeline record.</param>
        public void UpdateRecord(Guid id, TFBuildRecordData data)
        {
            var properties = data.GetProperties();

            properties.Add("id", id.ToString());
            WriteLoggingCommand("task.logdetail", properties, "update");
        }
Esempio n. 2
0
        /// <summary>
        /// Create detail timeline record.
        /// </summary>
        /// <param name="name">Name of the new timeline record.</param>
        /// <param name="type">Type of the new timeline record.</param>
        /// <param name="order">Order of the timeline record.</param>
        /// <param name="data">Additional data for the new timeline record.</param>
        /// <returns>The timeilne record ID.</returns>
        public Guid CreateNewRecord(string name, string type, int order, TFBuildRecordData data)
        {
            var guid       = Guid.NewGuid();
            var properties = data.GetProperties();

            properties.Add("id", guid.ToString());
            properties.Add("name", name);
            properties.Add("type", type);
            properties.Add("order", order.ToString());
            WriteLoggingCommand("task.logdetail", properties, "create new timeline record");
            return(guid);
        }