We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ecd065 + 834b73a commit b7aef2eCopy full SHA for b7aef2e
src/Serilog.Sinks.Exceptionless/Sinks/Exceptionless/ExceptionlessSink.cs
@@ -7,7 +7,7 @@ namespace Serilog.Sinks.Exceptionless {
7
/// <summary>
8
/// Exceptionless Sink
9
/// </summary>
10
- public class ExceptionlessSink : ILogEventSink {
+ public class ExceptionlessSink : ILogEventSink, IDisposable {
11
private readonly Func<EventBuilder, EventBuilder> _additionalOperation;
12
private readonly bool _includeProperties;
13
@@ -90,5 +90,9 @@ public void Emit(LogEvent logEvent) {
90
91
builder.Submit();
92
}
93
+
94
+ void IDisposable.Dispose() {
95
+ _client?.ProcessQueue();
96
+ }
97
98
0 commit comments