/// <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); }
/// <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; }