C# Class BrakePedal.MemoryThrottleRepository

Inheritance: IThrottleRepository
Afficher le fichier Open project: gopangea/BrakePedal

Méthodes publiques

Свойство Type Description
CurrentDate Func

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CreateBaseKeyValues ( IThrottleKey key, BrakePedal.Limiter limiter ) : List
GetUnixTimestamp ( ) : long
TimeSpanToFriendlyString ( System.TimeSpan span ) : string

Method Details

AddOrIncrementWithExpiration() public méthode

public AddOrIncrementWithExpiration ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Résultat void

CreateLockKey() public méthode

public CreateLockKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
Résultat string

CreateThrottleKey() public méthode

public CreateThrottleKey ( IThrottleKey key, BrakePedal.Limiter limiter ) : string
key IThrottleKey
limiter BrakePedal.Limiter
Résultat string

GetThrottleCount() public méthode

public GetThrottleCount ( IThrottleKey key, BrakePedal.Limiter limiter ) : long?
key IThrottleKey
limiter BrakePedal.Limiter
Résultat long?

LockExists() public méthode

public LockExists ( IThrottleKey key, BrakePedal.Limiter limiter ) : bool
key IThrottleKey
limiter BrakePedal.Limiter
Résultat bool

MemoryThrottleRepository() public méthode

public MemoryThrottleRepository ( ) : System
Résultat System

MemoryThrottleRepository() public méthode

public MemoryThrottleRepository ( ObjectCache cache ) : System
cache ObjectCache
Résultat System

RemoveThrottle() public méthode

public RemoveThrottle ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Résultat void

SetLock() public méthode

public SetLock ( IThrottleKey key, BrakePedal.Limiter limiter ) : void
key IThrottleKey
limiter BrakePedal.Limiter
Résultat void

Property Details

CurrentDate public_oe property

public Func CurrentDate
Résultat Func