void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("intervalLength");
     writer.WriteStringValue(IntervalLength.ToSerialString());
     writer.WritePropertyName("blobContainerSasUri");
     writer.WriteStringValue(BlobContainerSasUri);
     writer.WritePropertyName("fromTime");
     writer.WriteStringValue(FromTime, "O");
     writer.WritePropertyName("toTime");
     writer.WriteStringValue(ToTime, "O");
     if (Optional.IsDefined(GroupByThrottlePolicy))
     {
         writer.WritePropertyName("groupByThrottlePolicy");
         writer.WriteBooleanValue(GroupByThrottlePolicy.Value);
     }
     if (Optional.IsDefined(GroupByOperationName))
     {
         writer.WritePropertyName("groupByOperationName");
         writer.WriteBooleanValue(GroupByOperationName.Value);
     }
     if (Optional.IsDefined(GroupByResourceName))
     {
         writer.WritePropertyName("groupByResourceName");
         writer.WriteBooleanValue(GroupByResourceName.Value);
     }
     writer.WriteEndObject();
 }
Ejemplo n.º 2
0
 public static Interval Make(string startIntervalUTC, IntervalLength intervalLength)
 {
     return(Make(startIntervalUTC, TimeSpan.FromTicks((int)intervalLength * TimeSpan.TicksPerMinute)));
 }
Ejemplo n.º 3
0
 private Interval(long ticks, IntervalLength itvlLength) //: this()
 {
     tiks  = ticks;
     len   = TimeSpan.FromTicks((int)itvlLength * TimeSpan.TicksPerMinute);
     isDef = true;
 }