コード例 #1
0
ファイル: DataContext.cs プロジェクト: santedb/santedb-orm
 /// <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);
     }
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <summary>
 /// Decrement the value
 /// </summary>
 internal void Decrement(OrmPerformanceMetric metric)
 {
     this.m_queueInstructions.Enqueue(new KeyValuePair <OrmPerformanceMetric, long>(metric, -1));
     this.m_resetEvent.Set();
 }