C# Класс MongoDB.Driver.Internal.PingTimeAggregator

Holds the ping times and a rolling calculated average. This class is thread-safe.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Clear ( ) : void

Clears this instance.

Include ( System.TimeSpan pingTime ) : void

Includes the specified ping time in the calculation. If there are more times in the bucket than the maxCount, then the oldest one is replaced.

PingTimeAggregator ( int maxCount ) : System

Initializes a new instance of the PingTimeAggregator class.

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

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

Clears this instance.
public Clear ( ) : void
Результат void

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

Includes the specified ping time in the calculation. If there are more times in the bucket than the maxCount, then the oldest one is replaced.
public Include ( System.TimeSpan pingTime ) : void
pingTime System.TimeSpan The ping time.
Результат void

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

Initializes a new instance of the PingTimeAggregator class.
public PingTimeAggregator ( int maxCount ) : System
maxCount int The max count.
Результат System