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.
Show file Open project: symplified/Symplified.Auth Class Usage Examples

Public Methods

Method 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

Method Description
Trace ( ) : System

Method Details

CreateTraceString() public static method

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

CreateTraceString() public static method

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

ShouldTrace() public static method

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.
return bool

TraceData() public static method

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
return void

TraceMethodCalled() public static method

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
return void

TraceMethodDone() public static method

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
return void