Пример #1
0
 /// <summary>
 /// Initializes a new instance of the PersistenceInfo class.
 /// </summary>
 public PersistenceInfo(long totalCandlesPersistedCount, long totalCandleRowsPersistedCount, int batchesToPersistQueueLength, int candlesToDispatchQueueLength, Times times = default(Times), Throughput throughput = default(Throughput))
 {
     Times      = times;
     Throughput = throughput;
     TotalCandlesPersistedCount    = totalCandlesPersistedCount;
     TotalCandleRowsPersistedCount = totalCandleRowsPersistedCount;
     BatchesToPersistQueueLength   = batchesToPersistQueueLength;
     CandlesToDispatchQueueLength  = candlesToDispatchQueueLength;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Times != null)
     {
         Times.Validate();
     }
     if (Throughput != null)
     {
         Throughput.Validate();
     }
 }