示例#1
0
 private void threadSpin()
 {
     try
     {
         threadSpinCore();
     }
     catch (Exception error)
     {
         var em = new NFX.Log.Message
         {
             Type      = Log.MessageType.CatastrophicError,
             Topic     = CoreConsts.ERLANG_TOPIC,
             From      = GetType().Name + "threadSpin()",
             Text      = "threadSpinCore leaked: " + error.ToMessageWithType(),
             Exception = error
         };
         App.Log.Write(em);
     }
 }
示例#2
0
 private void threadSpin()
 {
   try
   {
     threadSpinCore();
   }
   catch(Exception error)
   {
     var em = new NFX.Log.Message
     {
       Type = Log.MessageType.CatastrophicError,
       Topic = CoreConsts.ERLANG_TOPIC,
       From = GetType().Name + "threadSpin()",
       Text = "threadSpinCore leaked: " + error.ToMessageWithType(),
       Exception = error
     };
     App.Log.Write(em);
   }
 }