Пример #1
0
 public GlobalStats WithFailure(TimeSpan failTime)
 {
     return(new GlobalStats(StartStamp, NowStamp,
                            CacheHitsTotal,
                            CacheMissesTotal,
                            CacheSkippedTotal,
                            TotalModifications,
                            TotalFailures + 1, // New value
                            TotalQueryTime,
                            TotalModificationTime,
                            TotalFailureTime + NrdoStats.nonZeroTime(failTime), // New value
                            CumulativeCost,
                            ScopeStarts,
                            ConnectionStarts,
                            TransactionStarts));
 }