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); }
private static void ThrowMissingDeltaProperty(string name, CounterOperationType type) { throw new InvalidDataException($"Missing '{nameof(Delta)}' property in Counter '{name}' of Type {type} "); }