[backend] Don't reorder properties with [ProtoContract] or [ProtoMember] attributes
This commit is contained in:
parent
f099d6ad41
commit
b0cae8a6f2
2 changed files with 252 additions and 8 deletions
|
@ -165,14 +165,13 @@ public abstract class Job {
|
|||
Failed
|
||||
}
|
||||
|
||||
[ProtoMember(4)] public DateTime? DelayedUntil;
|
||||
|
||||
[ProtoMember(10)] public string? ExceptionMessage;
|
||||
[ProtoMember(11)] public string? ExceptionSource;
|
||||
[ProtoMember(3)] public DateTime? FinishedAt;
|
||||
|
||||
[ProtoMember(1)] public DateTime QueuedAt = DateTime.Now;
|
||||
[ProtoMember(2)] public DateTime? StartedAt;
|
||||
[ProtoMember(3)] public DateTime? FinishedAt;
|
||||
[ProtoMember(4)] public DateTime? DelayedUntil;
|
||||
|
||||
[ProtoMember(10)] public string? ExceptionMessage;
|
||||
[ProtoMember(11)] public string? ExceptionSource;
|
||||
|
||||
public JobStatus Status = JobStatus.Queued;
|
||||
public long Duration => (long)((FinishedAt ?? DateTime.Now) - (StartedAt ?? QueuedAt)).TotalMilliseconds;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue