/// <summary> /// Creates a deep copy of the passed object. /// </summary> /// <param name="old">A <b>Database Definition</b> object to create the deep copy from.</param> private void CopyMembers(JobInstance old) { this.workflowTypeName = old.workflowTypeName; this.dateStarted = old.dateStarted; this.dateFinished = old.dateFinished; this.jobExecutionStatus = old.jobExecutionStatus; this.suspendTimeout = old.suspendTimeout; this.scheduleType = old.scheduleType; this.scheduleTime = old.scheduleTime; this.recurringPeriod = old.recurringPeriod; this.recurringInterval = old.recurringInterval; this.recurringMask = old.recurringMask; this.workflowInstanceId = old.workflowInstanceId; this.adminRequestTime = old.adminRequestTime; this.adminRequestData = old.adminRequestData == null ? null : new JobAdminRequestData(old.adminRequestData); this.adminRequestResult = old.adminRequestResult; this.exceptionMessage = old.exceptionMessage; this.parameters = new ParameterCollection(old.parameters); }
private void InitializeMembers(StreamingContext context) { this.workflowTypeName = string.Empty; this.dateStarted = DateTime.MinValue; this.dateFinished = DateTime.MinValue; this.jobExecutionStatus = JobExecutionState.Unknown; this.suspendTimeout = DateTime.MinValue; this.scheduleType = ScheduleType.Unknown; this.scheduleTime = DateTime.MinValue; this.recurringPeriod = RecurringPeriod.Unknown; this.recurringInterval = 0; this.recurringMask = 0; this.workflowInstanceId = Guid.Empty; this.adminRequestTime = DateTime.MinValue; this.adminRequestData = null; this.adminRequestResult = -1; this.exceptionMessage = null; this.parameters = new ParameterCollection(); }
/// <summary> /// Initializes member variables to their initial values. /// </summary> /// <remarks> /// This function is called by the contructors. /// </remarks> private void InitializeMembers() { base.EntityType = EntityType.JobInstance; base.EntityGroup = EntityGroup.Jobs; this.workflowTypeName = string.Empty; this.dateStarted = DateTime.MinValue; this.dateFinished = DateTime.MinValue; this.jobExecutionStatus = JobExecutionState.Unknown; this.suspendTimeout = DateTime.MinValue; this.scheduleType = ScheduleType.Unknown; this.scheduleTime = DateTime.MinValue; this.recurringPeriod = RecurringPeriod.Unknown; this.recurringInterval = 0; this.recurringMask = 0; this.workflowInstanceId = Guid.Empty; this.adminRequestTime = DateTime.MinValue; this.adminRequestData = null; this.adminRequestResult = -1; this.exceptionMessage = null; this.parameters = new Dictionary<string, JobParameter>(); this.checkpoints = new List<JobCheckpoint>(); }
/// <summary> /// Creates a deep copy of the passed object. /// </summary> /// <param name="old">A <b>Database Definition</b> object to create the deep copy from.</param> private void CopyMembers(JobInstance old) { this.workflowTypeName = old.workflowTypeName; this.dateStarted = old.dateStarted; this.dateFinished = old.dateFinished; this.jobExecutionStatus = old.jobExecutionStatus; this.suspendTimeout = old.suspendTimeout; this.scheduleType = old.scheduleType; this.scheduleTime = old.scheduleTime; this.recurringPeriod = old.recurringPeriod; this.recurringInterval = old.recurringInterval; this.recurringMask = old.recurringMask; this.workflowInstanceId = old.workflowInstanceId; this.adminRequestTime = old.adminRequestTime; this.adminRequestData = old.adminRequestData == null ? null : new JobAdminRequestData(old.adminRequestData); this.adminRequestResult = old.adminRequestResult; this.exceptionMessage = old.exceptionMessage; // TODO: do deep copy here? this.parameters = new Dictionary<string, JobParameter>(old.parameters); this.checkpoints = new List<JobCheckpoint>(old.checkpoints); }
/// <summary> /// Copy private members from another object. /// </summary> /// <param name="old">The original object to copy data from.</param> private void CopyMembers(JobAdminRequestData old) { this.title = old.title; this.message = old.message; this.options = old.options == null ? null : new List <string>(old.options); }
/// <summary> /// Copy contructor that creates a deep copy of the passed <b>JobAdminRequestData</b> class. /// </summary> /// <param name="old">The original object to copy data from.</param> public JobAdminRequestData(JobAdminRequestData old) { CopyMembers(old); }
/// <summary> /// Copy private members from another object. /// </summary> /// <param name="old">The original object to copy data from.</param> private void CopyMembers(JobAdminRequestData old) { this.title = old.title; this.message = old.message; this.options = old.options == null ? null : new List<string>(old.options); }
/// <summary> /// Copy contructor that creates a deep copy of the passed <b>JobAdminRequestData</b> class. /// </summary> /// <param name="old">The original object to copy data from.</param> public JobAdminRequestData(JobAdminRequestData old) { CopyMembers(old); }