public override string ToString() { string text = "Id: {0}, ImpactAction: {1}, Status: {2}, Actions: {3}, PendingActions: {4}, AllowedActions: {5}" .ToString( Id, TenantJob.GetImpactAction(), TenantJob.JobStatus, Actions.Count, PendingActions, AllowedActions); return(text); }
public TenantJobWrapper(TenantJob tenantJob) { tenantJob.Validate("tenantJob"); this.Id = tenantJob.Id.ToGuid(); this.JobStatus = tenantJob.JobStatus; this.RoleInstancesToBeImpacted = tenantJob.RoleInstancesToBeImpacted ?? new List <string>(); this.ContextStringGivenByTenant = tenantJob.ContextStringGivenByTenant; this.JobStep = tenantJob.JobStep != null ? new JobStepInfoWrapper(tenantJob.JobStep) : null; this.ImpactDetail = tenantJob.ImpactDetail != null ? new ImpactInfoWrapper(tenantJob.ImpactDetail) : null; this.CorrelationId = tenantJob.CorrelationId; }