Click or drag to resize

ThresholdLogger Class

Creates a simple way to log a timer message to the devlog if, and only if, a timing Threshold is exceeded. Use the TimerLogger to log bracketed timing entries without thresholding.
Inheritance Hierarchy
SystemObject
  NetQuarryThresholdLogger

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public sealed class ThresholdLogger

The ThresholdLogger type exposes the following members.

Constructors
  NameDescription
Public methodThresholdLogger(Int32, String, String, String)
Creates the object.
Public methodThresholdLogger(Int32, String, String, String, Guid)
Creates the timer with a specific bracketingID corresponding to another entry. Note that the other entry is not created by this class and must be created externally.
Top
Properties
  NameDescription
Public propertyThreshold
Gets/sets the threshold, in milliseconds, used to determine if a message should be logged at completion. Upon completion (when Stop is called, a devlog timing entry will be logged if, and only if, the duration of the timer exceeds this threshold.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(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.)
Public methodStop
Stops the timer and logs the closing message if the timer Threshold was exceeded.
Public methodStop(String)
Stops the timer and logs the closing message, with the specified addendum, if the timer Threshold was exceeded.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also