private bool HasOperationOfType(CounterOperationType type, string counterName)
        {
            foreach (var op in Counters.Operations)
            {
                if (op.CounterName != counterName)
                {
                    continue;
                }
                if (op.Type == type)
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 2
0
 private static void ThrowMissingDeltaProperty(string name, CounterOperationType type)
 {
     throw new InvalidDataException($"Missing '{nameof(Delta)}' property in Counter '{name}' of Type {type} ");
 }