C# 클래스 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.
파일 보기 프로젝트 열기: symplified/Symplified.Auth 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Trace ( ) : System

메소드 상세

CreateTraceString() 공개 정적인 메소드

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

CreateTraceString() 공개 정적인 메소드

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

ShouldTrace() 공개 정적인 메소드

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.
리턴 bool

TraceData() 공개 정적인 메소드

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
리턴 void

TraceMethodCalled() 공개 정적인 메소드

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
리턴 void

TraceMethodDone() 공개 정적인 메소드

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
리턴 void