Equals override
This commit is contained in:
parent
b7a4c263e7
commit
976cd03623
@ -79,4 +79,9 @@ public abstract class Job : IComparable
|
||||
throw new ArgumentException("Type can not be compared", nameof(obj));
|
||||
return TimeToNextExecution().CompareTo(other.TimeToNextExecution());
|
||||
}
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
return obj is Job other && other.JobId.Equals(this.JobId);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user