KangarooTimeout StructureKangaroo Library for .NET
Encapsulates a starting time and duration.

Namespace: DimensionEngineering.Kangaroo
Assembly: DimensionEngineering.Kangaroo (in DimensionEngineering.Kangaroo.dll) Version: 1.0.5.0 (1.0.5.0)
Syntax

public struct KangarooTimeout

The KangarooTimeout type exposes the following members.

Constructors

  NameDescription
Public methodKangarooTimeout
Constructs a KangarooTimeout object. The starting time is captured.
Top
Methods

  NameDescription
Public methodExpire
Causes the timeout to expire immediately.
Public methodReset
Captures the current time and uses it as the new starting time for the timeout.
Top
Operators

  NameDescription
Public operatorStatic memberGreaterThan
Compares the amount of time left in the timeouts.
Public operatorStatic memberLessThan
Compares the amount of time left in the timeouts.
Top
Properties

  NameDescription
Public propertyCanExpire
Gets whether the timeout can expire. If the KangarooTimeout was created with a timeout of Infinite, it cannot expire.
Public propertyExpired
Gets whether the timeout expired.
Public propertyTimeLeft
Gets the time left before expiration, or Infinite if the timeout cannot expire.
Top
See Also

Reference