C# Class Nimbus.Infrastructure.MessageSendersAndReceivers.ThrottlingMessageReceiver

Inheritance: INimbusMessageReceiver
Afficher le fichier Open project: NimbusAPI/Nimbus

Protected Properties

Свойство Type Description
ConcurrentHandlerLimit ConcurrentHandlerLimitSetting

Méthodes publiques

Méthode Description
Dispose ( ) : void
Start ( Task>.Func callback ) : Task
Stop ( ) : Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
Fetch ( CancellationToken cancellationToken ) : Task
ThrottlingMessageReceiver ( ConcurrentHandlerLimitSetting concurrentHandlerLimit, IGlobalHandlerThrottle globalHandlerThrottle, ILogger logger ) : System
WarmUp ( ) : Task

Private Methods

Méthode Description
CalculateDelayFor ( int consecutiveExceptionCount ) : System.TimeSpan
Worker ( Task>.Func callback ) : Task

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Fetch() protected abstract méthode

protected abstract Fetch ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
Résultat Task

Start() public méthode

public Start ( Task>.Func callback ) : Task
callback Task>.Func
Résultat Task

Stop() public méthode

public Stop ( ) : Task
Résultat Task

ThrottlingMessageReceiver() protected méthode

protected ThrottlingMessageReceiver ( ConcurrentHandlerLimitSetting concurrentHandlerLimit, IGlobalHandlerThrottle globalHandlerThrottle, ILogger logger ) : System
concurrentHandlerLimit ConcurrentHandlerLimitSetting
globalHandlerThrottle IGlobalHandlerThrottle
logger ILogger
Résultat System

WarmUp() protected abstract méthode

protected abstract WarmUp ( ) : Task
Résultat Task

Property Details

ConcurrentHandlerLimit protected_oe property

protected ConcurrentHandlerLimitSetting ConcurrentHandlerLimit
Résultat ConcurrentHandlerLimitSetting