Esempio n. 1
0
 /// <summary>
 /// Returns true if the LiveInstrumentInfo has the same information.
 /// </summary>
 public bool Equals(LiveInstrumentInfo other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     else
     {
         return(InstrumentInfo.Equals(other.InstrumentInfo) && Status == other.Status &&
                TimeDifference == other.TimeDifference && LastSuccessfulCommunication == other.LastSuccessfulCommunication &&
                ErrorCount == other.ErrorCount && DownloadingExperimentsEqual(other));
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new LiveInstrumentInfo with the provided InstrumentInfo
 /// </summary>
 public LiveInstrumentInfo(InstrumentInfo instrumentInfo)
 {
     InstrumentInfo = instrumentInfo;
 }