Table of Contents

Class NumberGenerator

Namespace
Lextm.SharpSnmpLib.Messaging
Assembly
SharpSnmpLib.dll

A counter that generates ID.

public sealed class NumberGenerator
Inheritance
NumberGenerator
Inherited Members

Remarks

The request ID is used to identifier sessions.

Constructors

NumberGenerator(int, int)

Initializes a new instance of the NumberGenerator class.

public NumberGenerator(int min, int max)

Parameters

min int

The min.

max int

The max.

Properties

NextId

Returns next ID. This method is thread-safe within this instance of NumberGenerator.

public int NextId { get; }

Property Value

int