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

Decrement() public static method

public static Decrement ( string counterName ) : void
counterName string
return void
        public static void Decrement(string counterName)
        {
            if (!RepositoryConfiguration.PerformanceCountersEnabled)
                return;

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