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
Properties
NextId
Returns next ID. This method is thread-safe within this instance of NumberGenerator.
public int NextId { get; }