public Metrics(string status, ReplicationTimeValue eventThreshold) { if (string.IsNullOrEmpty(Status) || string.IsNullOrWhiteSpace(Status)) { throw new ArgumentNullException(nameof(Status) + " member cannot be empty."); } Status = status; EventThreshold = eventThreshold; }
public ReplicationTime(ReplicationTimeValue time, string status) { if (time == null) { throw new ArgumentNullException(nameof(Time), " object cannot be null."); } if (string.IsNullOrEmpty(status) || string.IsNullOrWhiteSpace(status)) { throw new ArgumentNullException(nameof(Status) + " cannot be null or empty."); } Time = time; Status = status; }