Exemplo n.º 1
0
 /// <summary>
 /// The public constructor used by automatically generated metrics.
 /// </summary>
 public CounterMetricType(
     bool disabled,
     string category,
     Lifetime lifetime,
     string name,
     string[] sendInPings
     ) : this(0, disabled, sendInPings)
 {
     handle = LibGleanFFI.glean_new_counter_metric(
         category: category,
         name: name,
         send_in_pings: sendInPings,
         send_in_pings_len: sendInPings.Length,
         lifetime: (int)lifetime,
         disabled: disabled);
 }