Client model for ServiceJob that includes all the fields that are available for GETs. Use this for GETs (use ServiceJobEntity for POST/PUTs)
Inheritance: ServiceJobEntity
Beispiel #1
0
 /// <summary>
 /// Copies the base properties from a source ServiceJob object
 /// </summary>
 /// <param name="source">The source.</param>
 public void CopyPropertiesFrom(ServiceJob source)
 {
     this.Id                                = source.Id;
     this.Assembly                          = source.Assembly;
     this.Class                             = source.Class;
     this.CronExpression                    = source.CronExpression;
     this.Description                       = source.Description;
     this.EnableHistory                     = source.EnableHistory;
     this.ForeignGuid                       = source.ForeignGuid;
     this.ForeignKey                        = source.ForeignKey;
     this.HistoryCount                      = source.HistoryCount;
     this.IsActive                          = source.IsActive;
     this.IsSystem                          = source.IsSystem;
     this.LastRunDateTime                   = source.LastRunDateTime;
     this.LastRunDurationSeconds            = source.LastRunDurationSeconds;
     this.LastRunSchedulerName              = source.LastRunSchedulerName;
     this.LastStatus                        = source.LastStatus;
     this.LastStatusMessage                 = source.LastStatusMessage;
     this.LastSuccessfulRunDateTime         = source.LastSuccessfulRunDateTime;
     this.ModifiedAuditValuesAlreadyUpdated = source.ModifiedAuditValuesAlreadyUpdated;
     this.Name                              = source.Name;
     this.NotificationEmails                = source.NotificationEmails;
     this.NotificationStatus                = source.NotificationStatus;
     this.CreatedDateTime                   = source.CreatedDateTime;
     this.ModifiedDateTime                  = source.ModifiedDateTime;
     this.CreatedByPersonAliasId            = source.CreatedByPersonAliasId;
     this.ModifiedByPersonAliasId           = source.ModifiedByPersonAliasId;
     this.Guid                              = source.Guid;
     this.ForeignId                         = source.ForeignId;
 }
Beispiel #2
0
 /// <summary>
 /// Copies the base properties from a source ServiceJob object
 /// </summary>
 /// <param name="source">The source.</param>
 public void CopyPropertiesFrom( ServiceJob source )
 {
     this.Id = source.Id;
     this.Assembly = source.Assembly;
     this.Class = source.Class;
     this.CronExpression = source.CronExpression;
     this.Description = source.Description;
     this.ForeignGuid = source.ForeignGuid;
     this.ForeignKey = source.ForeignKey;
     this.IsActive = source.IsActive;
     this.IsSystem = source.IsSystem;
     this.LastRunDateTime = source.LastRunDateTime;
     this.LastRunDurationSeconds = source.LastRunDurationSeconds;
     this.LastRunSchedulerName = source.LastRunSchedulerName;
     this.LastStatus = source.LastStatus;
     this.LastStatusMessage = source.LastStatusMessage;
     this.LastSuccessfulRunDateTime = source.LastSuccessfulRunDateTime;
     this.ModifiedAuditValuesAlreadyUpdated = source.ModifiedAuditValuesAlreadyUpdated;
     this.Name = source.Name;
     this.NotificationEmails = source.NotificationEmails;
     this.NotificationStatus = source.NotificationStatus;
     this.CreatedDateTime = source.CreatedDateTime;
     this.ModifiedDateTime = source.ModifiedDateTime;
     this.CreatedByPersonAliasId = source.CreatedByPersonAliasId;
     this.ModifiedByPersonAliasId = source.ModifiedByPersonAliasId;
     this.Guid = source.Guid;
     this.ForeignId = source.ForeignId;
 }