/// <summary> /// Decrement the value /// </summary> private void DecrementProbe(OrmPerformanceMetric metric) { if (this.m_provider is IDbMonitorProvider idmp && idmp.MonitorProbe is OrmClientProbe ocp) { ocp.Decrement(metric); } }
/// <summary> /// Average the time /// </summary> internal void AverageWith(OrmPerformanceMetric metric, long value) { this.m_queueInstructions.Enqueue(new KeyValuePair <OrmPerformanceMetric, long>(metric, value)); this.m_resetEvent.Set(); }
/// <summary> /// Decrement the value /// </summary> internal void Decrement(OrmPerformanceMetric metric) { this.m_queueInstructions.Enqueue(new KeyValuePair <OrmPerformanceMetric, long>(metric, -1)); this.m_resetEvent.Set(); }