Skip to content

Commit

Permalink
Merge pull request #2 from Streets-Heaver/MoveDisposesOntoInterface
Browse files Browse the repository at this point in the history
Moved disposes onto ILogger interface so it makes mocking easier
  • Loading branch information
tomaustin700 authored Feb 24, 2021
2 parents 4905f25 + 4828510 commit 08c5c21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ElasticLogging/ElasticLogging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace ElasticLogging
{
public class Logger : ILogger, IDisposable, IAsyncDisposable
public sealed class Logger : ILogger
{
private readonly ElasticClient _elasticClient;
private readonly string _logName;
Expand Down
2 changes: 1 addition & 1 deletion ElasticLogging/IElasticLogging.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace ElasticLogging
{
public interface ILogger
public interface ILogger : IDisposable, IAsyncDisposable
{
void Debug(string message);
Task DebugAsync(string message);
Expand Down

0 comments on commit 08c5c21

Please sign in to comment.