Esempio n. 1
0
        /// <summary>
        /// Creates ticket for log record.
        /// </summary>
        /// <param name="objectSpace">The object space.</param>
        /// <param name="logRecord">The log record.</param>
        /// <param name="package">The package.</param>
        /// <returns>New ticket</returns>
        public static Ticket CreateForLogRecord(IObjectSpace objectSpace,
                                                PackageLogRecord logRecord, Package package)
        {
            var result = objectSpace.CreateObject <Ticket>();

            result.PackageEventType = logRecord.PackageEventType;
            result.Package          = package;
            result.Comments         = logRecord.Comments;
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Creates ticket for log record.
 /// </summary>
 /// <param name="objectSpace">The object space.</param>
 /// <param name="logRecord">The log record.</param>
 /// <param name="package">The package.</param>
 /// <returns>New ticket</returns>
 public static Ticket CreateForLogRecord(IObjectSpace objectSpace, 
     PackageLogRecord logRecord, Package package)
 {
     var result = objectSpace.CreateObject<Ticket>();
     result.PackageEventType = logRecord.PackageEventType;
     result.Package = package;
     result.Comments = logRecord.Comments;
     return result;
 }