SenseNet.ContentRepository.CounterManager.IncrementBy C# (CSharp) Method

IncrementBy() public static method

public static IncrementBy ( string counterName, long value ) : void
counterName string
value long
return void
        public static void IncrementBy(string counterName, long value)
        {
            if (!RepositoryConfiguration.PerformanceCountersEnabled)
                return;

            var counter = CounterManager.Current.GetCounter(counterName);
            if (counter != null)
                counter.IncrementBy(value);
        }