Winify – Diff between revs 61 and 67

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 61 Rev 67
Line 4... Line 4...
4 using Serilog.Core; 4 using Serilog.Core;
5 using Serilog.Events; 5 using Serilog.Events;
6 using Serilog.Formatting; 6 using Serilog.Formatting;
7 using Serilog.Formatting.Display; 7 using Serilog.Formatting.Display;
Line 8... Line 8...
8   8  
9 namespace Winify 9 namespace Winify.Utilities
10 { 10 {
11 public class LogMemorySink : ILogEventSink 11 public class LogMemorySink : ILogEventSink
12 { 12 {
13 private readonly ITextFormatter _textFormatter = 13 private readonly ITextFormatter _textFormatter =
Line 16... Line 16...
16   16  
Line 17... Line 17...
17 public ObservableCollection<string> Events { get; } = new ObservableCollection<string>(); 17 public ObservableCollection<string> Events { get; } = new ObservableCollection<string>();
18   18  
-   19 public void Emit(LogEvent logEvent)
-   20 {
19 public void Emit(LogEvent logEvent) 21 if (logEvent == null)
-   22 {
Line 20... Line 23...
20 { 23 throw new ArgumentNullException(nameof(logEvent));
21 if (logEvent == null) throw new ArgumentNullException(nameof(logEvent)); 24 }
22   25  
23 using var stringWriter = new StringWriter(); 26 using var stringWriter = new StringWriter();