Exemplo n.º 1
0
        internal static void LogError(string log)
        {
            Console.WriteLine(log);

            if (LogErrorHandler != null)
            {
                LogErrorHandler.Invoke(log);
            }
        }
 public static void LogErrorAsync(Type t, Exception ex)
 {
     //Console.WriteLine("into error" + System.Threading.Thread.CurrentThread.ManagedThreadId);
     LogErrorHandler handler = new LogErrorHandler(WriteError);
     handler.BeginInvoke(t, ex, LogErrCallBack, handler);
 }