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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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