Skip to content

Commit

Permalink
Fix IDisposable pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Nov 2, 2023
1 parent f7097a8 commit da7453d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FileWatcher.Service/WatcherService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public Task StopAsync(CancellationToken cancellationToken)
return Task.CompletedTask;
}

public virtual void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down
2 changes: 1 addition & 1 deletion FileWatcher/Watcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public void Dispose()
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary>
/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
public virtual void Dispose(bool disposing)
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
Expand Down

0 comments on commit da7453d

Please sign in to comment.