BrakePedal.MemoryThrottleRepository.GetThrottleCount C# (CSharp) Метод

GetThrottleCount() публичный Метод

public GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
key IThrottleKey
limiter BrakePedal.Limiter
Результат long?
        public long? GetThrottleCount(IThrottleKey key, Limiter limiter)
        {
            string id = CreateThrottleKey(key, limiter);

            var cacheItem = _store.Get(id) as ThrottleCacheItem;
            if (cacheItem != null)
            {
                return cacheItem.Count;
            }

            return null;
        }