C# Класс BrakePedal.MemoryThrottleRepository

Наследование: IThrottleRepository
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
CurrentDate Func

Открытые методы

Метод Описание
AddOrIncrementWithExpiration ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
CreateLockKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
CreateThrottleKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
LockExists ( IThrottleKey key, BrakePedal.Limiter limiter ) : bool
MemoryThrottleRepository ( ) : System
MemoryThrottleRepository ( ObjectCache cache ) : System
RemoveThrottle ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
SetLock ( IThrottleKey key, BrakePedal.Limiter limiter ) : void

Приватные методы

Метод Описание
CreateBaseKeyValues ( IThrottleKey key, BrakePedal.Limiter limiter ) : List
GetUnixTimestamp ( ) : long
TimeSpanToFriendlyString ( System.TimeSpan span ) : string

Описание методов

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

public AddOrIncrementWithExpiration ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Результат void

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

public CreateLockKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
Результат string

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

public CreateThrottleKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
Результат string

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

public GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
key IThrottleKey
limiter BrakePedal.Limiter
Результат long?

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

public LockExists ( IThrottleKey key, BrakePedal.Limiter limiter ) : bool
key IThrottleKey
limiter BrakePedal.Limiter
Результат bool

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

public MemoryThrottleRepository ( ) : System
Результат System

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

public MemoryThrottleRepository ( ObjectCache cache ) : System
cache ObjectCache
Результат System

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

public RemoveThrottle ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Результат void

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

public SetLock ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Результат void

Описание свойств

CurrentDate публичное свойство

public Func CurrentDate
Результат Func