예제 #1
0
 private async Task LogMessage(string message, LogBotEntryLevel level)
 {
     await Task.Factory.StartNew(() =>
     {
         Logger.AddAsync(
             new LogBotEntry(
                 message,
                 level)
             , _uiDispatcher);
     });
 }
예제 #2
0
 public LogBotEntry(string message)
 {
     Message = message;
     Time    = DateTime.Now;
     Level   = LogBotEntryLevel.Info;
 }
예제 #3
0
 public LogBotEntry(string message, LogBotEntryLevel level)
 {
     Message = message;
     Time    = DateTime.Now;
     Level   = level;
 }
예제 #4
0
 public LogBotEntry()
 {
     Time    = DateTime.Now;
     Message = "Nothing to Show";
     Level   = LogBotEntryLevel.Debug;
 }