Ejemplo n.º 1
0
 public Metrics(string status, ReplicationTimeValue eventThreshold)
 {
     if (string.IsNullOrEmpty(Status) || string.IsNullOrWhiteSpace(Status))
     {
         throw new ArgumentNullException(nameof(this.Status) + " member cannot be empty.");
     }
     this.Status         = status;
     this.EventThreshold = eventThreshold;
 }
Ejemplo n.º 2
0
 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.");
     }
     this.Time   = time;
     this.Status = status;
 }