Table of Contents

Class LimitRate

Namespace
Inetlab.SMPP.Common
Assembly
Inetlab.SMPP.dll
public class LimitRate
Inheritance
LimitRate
Inherited Members

Constructors

LimitRate(int, TimeSpan)

public LimitRate(int occurrences, TimeSpan timeUnit)

Parameters

occurrences int
timeUnit TimeSpan

Fields

NoLimit

public static readonly LimitRate NoLimit

Field Value

LimitRate

Properties

Occurrences

public int Occurrences { get; }

Property Value

int

TimeUnit

public TimeSpan TimeUnit { get; }

Property Value

TimeSpan

Methods

IsFasterThan(LimitRate)

public bool IsFasterThan(LimitRate rate)

Parameters

rate LimitRate

Returns

bool

IsSlower(long)

public bool IsSlower(long elapsed)

Parameters

elapsed long

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator double(LimitRate)

public static implicit operator double(LimitRate rate)

Parameters

rate LimitRate

Returns

double

implicit operator LimitRate(double)

public static implicit operator LimitRate(double rate)

Parameters

rate double

Returns

LimitRate