9cff87fe85
Remove project bookkeeping citations from shipped code comments across the solution: hyphenated task IDs (WP-14, StoreAndForward-025), milestone/task/ issue refs (M3, Task 4, Audit Log #23, #21), Bundle X task-bundle labels, and C/D/K/S/T phase labels. Comment text only — no code logic, string/log literals, or XML-doc structure changed. Genuine descriptions are preserved (only the citation is stripped), and technical lookalikes are retained (UTF-8, SHA-256, T00:00:00, M365, UTC-5, pre-C4/pre-C5 schema versions). Flagged by the new CommentChecker TaskReferenceInComment / TrackingReferenceInComment checks plus targeted grep passes; full solution builds clean, append-only guard tests pass.
68 lines
2.0 KiB
C#
68 lines
2.0 KiB
C#
using ZB.MOM.WW.ScadaBridge.Commons.Types.Enums;
|
|
|
|
namespace ZB.MOM.WW.ScadaBridge.Commons.Entities.Deployment;
|
|
|
|
public class DeploymentRecord
|
|
{
|
|
/// <summary>
|
|
/// The deployment record identifier.
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// The instance identifier being deployed.
|
|
/// </summary>
|
|
public int InstanceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The current deployment status.
|
|
/// </summary>
|
|
public DeploymentStatus Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// The deployment identifier.
|
|
/// </summary>
|
|
public string DeploymentId { get; set; }
|
|
|
|
/// <summary>
|
|
/// The revision hash of the deployed configuration, or null.
|
|
/// </summary>
|
|
public string? RevisionHash { get; set; }
|
|
|
|
/// <summary>
|
|
/// The user who initiated the deployment.
|
|
/// </summary>
|
|
public string DeployedBy { get; set; }
|
|
|
|
/// <summary>
|
|
/// The time when the deployment was initiated.
|
|
/// </summary>
|
|
public DateTimeOffset DeployedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// The time when the deployment completed, or null if still in progress.
|
|
/// </summary>
|
|
public DateTimeOffset? CompletedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Error message if the deployment failed, or null.
|
|
/// </summary>
|
|
public string? ErrorMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Optimistic concurrency token for deployment status updates.
|
|
/// </summary>
|
|
public byte[] RowVersion { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the DeploymentRecord.
|
|
/// </summary>
|
|
/// <param name="deploymentId">The deployment identifier.</param>
|
|
/// <param name="deployedBy">The user initiating the deployment.</param>
|
|
public DeploymentRecord(string deploymentId, string deployedBy)
|
|
{
|
|
DeploymentId = deploymentId ?? throw new ArgumentNullException(nameof(deploymentId));
|
|
DeployedBy = deployedBy ?? throw new ArgumentNullException(nameof(deployedBy));
|
|
}
|
|
}
|