Exemplo n.º 1
0
 internal static void Trace <T>(TraceType traceType, T obj)
 {
     if (obj != null && DDIHelper.HasTraceEnabled(traceType))
     {
         DDIHelper.Trace(traceType, EcpTraceHelper.GetTraceString(obj));
     }
 }
Exemplo n.º 2
0
 internal static void Trace(TraceType traceType, string formatString, params object[] args)
 {
     if (formatString != null && DDIHelper.HasTraceEnabled(traceType))
     {
         List <string> list = new List <string>();
         if (args != null)
         {
             foreach (object obj in args)
             {
                 list.Add((obj == null) ? string.Empty : EcpTraceHelper.GetTraceString(obj));
             }
         }
         DDIHelper.Trace(traceType, string.Format(formatString, list.ToArray()));
     }
 }