Click or drag to resize

NumberGenerator Class

A counter that generates ID.
Inheritance Hierarchy
SystemObject
  GSF.Net.Snmp.MessagingNumberGenerator

Namespace: GSF.Net.Snmp.Messaging
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.207-beta
Syntax
public sealed class NumberGenerator
View Source

The NumberGenerator type exposes the following members.

Constructors
 NameDescription
Public methodNumberGenerator Initializes a new instance of the NumberGenerator class.
Top
Properties
 NameDescription
Public propertyNextId Returns next ID. This method is thread-safe within this instance of NumberGenerator.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
The request ID is used to identifier sessions.
See Also