Click or drag to resize

EntryGuard Class

Helps to prevent multiple calls to a method in a very short timespan. The guard can check if enough time is in between two calls. On Windows 10 touch-click events can happen multiple times - so we have to prevent event handlers to get called in a very short timespan.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.Tps.Windows.FormsEntryGuard

Namespace:  ABB.Robotics.Tps.Windows.Forms
Assembly:  ABB.Robotics.Tps.Windows.Forms (in ABB.Robotics.Tps.Windows.Forms.dll) Version: 6.5.129.0
Syntax
C#
public class EntryGuard

The EntryGuard type exposes the following members.

Constructors
  NameDescription
Public methodEntryGuard(String)
Creates a new EntryGuard instance
Public methodEntryGuard(String, Int32)
Creates a new EntryGuard instance
Top
Methods
  NameDescription
Public methodAllowEntry
Checks if the caller has waited long enough to call the method again
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also