C# Class dk.nita.saml20.Utils.Trace

Trace class. Can be used to trace. To ensure that tracing is enabled, you should make a call to "ShouldTrace" Put this in config to enable trace at the Warning level.
Afficher le fichier Open project: symplified/Symplified.Auth Class Usage Examples

Méthodes publiques

Méthode Description
CreateTraceString ( Type t, string methodname ) : string

Utility function for commonly formatted trace entries

CreateTraceString ( Type t, string methodname, string postfix ) : string

Utility function for commonly formatted trace entries

ShouldTrace ( TraceEventType eventType ) : bool

Ask the trace if a tracelevel is enabled. Use this if you want to determine if a message should be traced, before you build a complicated trace message.

TraceData ( TraceEventType eventType ) : void

Write data to tracesource. If a trace source is configured, and the Event Type is allowed to write. A message will be traced.

TraceMethodCalled ( Type t, string methodname ) : void

Convenience helper for writing a trace data event when a method call starts

TraceMethodDone ( Type t, string methodname ) : void

Convenience helper for writing a trace data event when a method call is done

Private Methods

Méthode Description
Trace ( ) : System

Method Details

CreateTraceString() public static méthode

Utility function for commonly formatted trace entries
public static CreateTraceString ( Type t, string methodname ) : string
t System.Type
methodname string
Résultat string

CreateTraceString() public static méthode

Utility function for commonly formatted trace entries
public static CreateTraceString ( Type t, string methodname, string postfix ) : string
t System.Type
methodname string
postfix string
Résultat string

ShouldTrace() public static méthode

Ask the trace if a tracelevel is enabled. Use this if you want to determine if a message should be traced, before you build a complicated trace message.
public static ShouldTrace ( TraceEventType eventType ) : bool
eventType TraceEventType The tracelevel.
Résultat bool

TraceData() public static méthode

Write data to tracesource. If a trace source is configured, and the Event Type is allowed to write. A message will be traced.
public static TraceData ( TraceEventType eventType ) : void
eventType TraceEventType The trace level
Résultat void

TraceMethodCalled() public static méthode

Convenience helper for writing a trace data event when a method call starts
public static TraceMethodCalled ( Type t, string methodname ) : void
t System.Type
methodname string
Résultat void

TraceMethodDone() public static méthode

Convenience helper for writing a trace data event when a method call is done
public static TraceMethodDone ( Type t, string methodname ) : void
t System.Type
methodname string
Résultat void