예제 #1
0
파일: FileSM.cs 프로젝트: Hockwell/StruLog
 public void RunBatchProcessing()
 {
     Task task = Task.Factory.StartNew(async() =>
     {
         try
         {
             await Log();
         }
         catch (Exception ex)
         {
             Logger.Error($"Processing thread was dropped. {ex.GetType()}:{ex.Message}");
         }
         ProcessingQueue.CompleteAdding();
     }, TaskCreationOptions.LongRunning);
 }